On 1/14/13 6:11 PM, "Oleg Konovalov" <oleg...@gmail.com> wrote:
> It sounds interesting.
>
> Not only we should not display columns without data by default,
> but also user has an option to override that behavior ("force" some columns
> from the list to appear even if they have no data).
> so there is event for users to select/unselect some checkbox from list on
> the screen.
Should be doable. Set columns if there is data or if the checkbox.selected
is true, else set to null.
>
>
> On Mon, Jan 14, 2013 at 6:54 PM, Alex Harui <aha...@adobe.com> wrote:
>
>> Remove all columns from the ADG and don't assign a dataprovder. Is that
>> what you want it to look like?
>>
>> If so, define the columns somewhere else and only assign them if there is
>> data.
>>
>>
>> On 1/12/13 1:00 PM, "Oleg Konovalov" <oleg...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am trying to create dynamic DataGrid,
>>> which shows columns only if it contains data
>>> return by query (it has 10+ columns, so not easy to calculate sizes)..
>>> I read a lot of posts on the net, tried minWidth, ResizeMode, etc.
>>>
>>> Nothing really useful which works.
>>> In most cases it created very narrow columns except the last one - super
>>> wide.
>>>
>>> Please help!
>>>
>>> (using Flex4 AdvancedDataGrid)
>>>
>>
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe Systems, Inc.
>> http://blogs.adobe.com/aharui
>>
>>
>
--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui