Hi Piotr,

about the initializer problem: Since DataGrid composes other components
ButtonBar and ListArea, and inside this Columns, that are List you can
extend DataGridView and override createList so you can proxy the
initializer to the columns.

something like:

var initializerClass:Class = ValuesManager.valuesImpl.getValue(host,
"iItemRendererInitializer") as Class;

and then

if(initializerClass)
list.addBead(new initializerClass());


Can you try if this work for you?
I think this could be a bead or a DataGridView bead extension to configure
since is something that not seems many users will do.

Let me know what you think

Thanks




El lun., 9 mar. 2020 a las 17:07, Piotr Zarzycki (<[email protected]>)
escribió:

> Hi Carlos,
>
> Thanks for improvements - I will check them once sdk will build on jenkins.
>
> I need initializers to get owner of item renderers this is the case:
>
> var ownerViewBead:ItemRendererOwnerViewBead =
> this.getBeadByType(ItemRendererOwnerViewBead) as ItemRendererOwnerViewBead;
> ownerViewBead.ownerView
>
> Thanks,
> Piotr
>
> pon., 9 mar 2020 o 16:42 Carlos Rovira <[email protected]>
> napisał(a):
>
> > Hi Piotr,
> >
> > DataGrid now has 3 improvements:
> >
> >
> >    - No default width or height
> >    - width and height can be not set or set to pixels or  % values
> >    - columnWidths can be no set at all, set all or just some to pixels (I
> >    didn't loo
> >
> > Notice that, we don't support % in columns since there's no way to set
> > columns to percentages. We want to support it?. Maybe we can introduce
> > "columnPercentWidth" ? Not sure about this
> >
> > I'll take a look at the initializer problem with Lists and Dgs. Regarding
> > this, what's the use case or why you want to change the initializer?
> having
> > some kind of example will help me with this, since right now don't know
> so
> > much about it.
> >
> > Thanks
> >
> > Carlos
> >
> >
> >
> >
> >
> > El vie., 6 mar. 2020 a las 17:32, Carlos Rovira (<
> [email protected]
> > >)
> > escribió:
> >
> > > I'm thinking that the last problem need a solution like the one in
> > > ComboBox with passing the IR class to the internal List.
> > > (Although some issue is still in the mapper infrastructure, but I think
> > is
> > > separated issue).
> > >
> > >
> > > El vie., 6 mar. 2020 a las 17:24, Piotr Zarzycki (<
> > > [email protected]>) escribió:
> > >
> > >> Both issues with width/height and this one block migration for now in
> > our
> > >> application from Table to DataGrid. I would be the first one who test
> it
> > >> for sure when you find cause of that issue and fix it.
> > >>
> > >> Thanks for that update,
> > >> Piotr
> > >>
> > >> pt., 6 mar 2020 o 17:17 Carlos Rovira <[email protected]>
> > >> napisał(a):
> > >>
> > >> > Hi Piotr,
> > >> >
> > >> > yesterday I saw a strange behaviour with controls that compose list
> > and
> > >> > Item renderer changes done recently, but was in ComboBox that can
> > >> configure
> > >> > an Item renderer and then pass to the ComboBoxPopUp to its List
> > internal
> > >> > component (so we can have custom renderers in ComboBox). In this
> case
> > >> > rowCount and rowHeight is not working as expected, sin ce there
> > >> initializer
> > >> > is not used in ComboBox internal list, while in VirtualComboBox is
> > >> working
> > >> > ok.
> > >> > I trace the problem to Mappers not update right when the renderers
> > >> refactor
> > >> > was done. So while the mapper in Basic adds initializer, in Jewel is
> > not
> > >> > doing that. I could not invest more time since I was in the middle
> of
> > >> other
> > >> > fixes, and still had the width/height issues in DG, so could not see
> > >> > exactly what's the problem.
> > >> > I want to see if now that this refactor is done is safe to remove
> > jewel
> > >> > mappers to user basic versions, but a quick test reveal that is not
> > >> direct.
> > >> > In resume, about your problem, I think it could be something like
> the
> > >> one
> > >> > with ComboBox, but need to have the time to reach to that point,
> > >> hopefully
> > >> > soon.
> > >> > Thanks
> > >> >
> > >>
> > >>
> > >> --
> > >>
> > >> Piotr Zarzycki
> > >>
> > >> Patreon: *https://www.patreon.com/piotrzarzycki
> > >> <https://www.patreon.com/piotrzarzycki>*
> > >>
> > >
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> > >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to