Hi,

There is now the DataGrid bead DataGridColumnVisibility to apply the
invisibility to the columns marked as visible = false.
This new bead was tested and compatibility along with the new
DataGridLockedColumn bead.

Regards,
Hugo.

Hugo Ferreira <hferreira...@gmail.com> escreveu no dia quarta, 17/11/2021
à(s) 13:52:

> Yes, makes sense and it's more the way of Royale.
>
> For what I saw, we need to first support beads on DataGridColumn and then
> implement that bead.
> I will check that possibility later and if I can implement it that way, I
> can commit.
>
> Yishay Weiss <yishayj...@hotmail.com> escreveu no dia quarta, 17/11/2021
> à(s) 08:26:
>
>> Without looking at the code, if the generic implementation is complicated
>> it sounds like we should export that functionality to a
>> DataGridColumnVisibilityBead. That way we can default to the simple case
>> and override it easily (which is what you needed to do IIUC).
>>
>> From: Hugo Ferreira<mailto:hferreira...@gmail.com>
>> Sent: Wednesday, November 17, 2021 12:22 AM
>> To: Apache Royale Development<mailto:dev@royale.apache.org>
>> Subject: Re: DataGridColumn visible property seems to be ignored
>>
>> In this case seems a TODO implementation of the visible property.
>> Controlling the visibility of the columns in a generic way seems too
>> complex.
>>
>> Yishay Weiss <yish...@apache.org> escreveu no dia terça, 16/11/2021 à(s)
>> 05:38:
>>
>> > This looks like a mistake in the SDK code unless I'm missing something,
>> > Can anyone think of a reason to ignore true values?
>> >
>> > On 2021/11/15 00:19:26 Hugo Ferreira wrote:
>> > > In fact, seems that was not implemented (from DataGridColumn.as):
>> > >
>> > > public function set visible(value:Boolean):void{
>> > > if (value != _visible) {
>> > > _visible = value;
>> > > //somehow, invalidate layout
>> > > }
>> > > }
>> > >
>> > > Hugo Ferreira <hferreira...@gmail.com> escreveu no dia segunda,
>> > 15/11/2021
>> > > à(s) 00:13:
>> > >
>> > > > Hi,
>> > > >
>> > > > I have a DataGrid with several columns and I need to hide a few of
>> them
>> > > > depend of the business logic.
>> > > > It seems that the visible property (that exists) in the
>> DataGridColumn
>> > is
>> > > > ignored, even with the direct "false" value.
>> > > >
>> > > > Do I missing something or it's a property that exists but it's not
>> > > > implemented the action?
>> > > >
>> > > > Regards,
>> > > > Hugo.
>> > > >
>> > >
>> >
>>
>>

Reply via email to