Well I'm not setting the width apart from in the mx:DataGrid attrib. to 991
However if I specify 100% rather than 991 then it works - the columns maintain 
their widths on returning to the prev state!
I can live with 100% but that behaviour seems odd to me.

cheers Steve and thanks for your help.

--- In [email protected], Alex Harui <aha...@...> wrote:
>
> Sounds like the DG is given a 0 width or really small width at some point.
> 
> 
> On 5/30/10 4:00 AM, "stephen_anson" <[email protected]> wrote:
> 
> 
> 
> 
> 
> 
> Hi,
> I have a data grid that has several columns, when i go from one state and 
> back to the original state the first 2 columns are resizing to fill the grid.
> I have used an the following custom checkbox component as an item renderer in 
> several of the fields, could there be a problem with this?
> 
> <s:MXDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009";
>   xmlns:s="library://ns.adobe.com/flex/spark"
>   xmlns:mx="library://ns.adobe.com/flex/mx"
>   focusEnabled="true"
>  >
> <s:CheckBox id="lblData" horizontalCenter="0" 
> selected="{dataGridListData.label=='1'}" />
> </s:MXDataGridItemRenderer>
> 
> when i stick a trace in the enterstate handler it says the first datacolumn 
> is -1 in width.
> any help much appreciated
> 
> cheers Steve
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>


Reply via email to