3 Replies Latest reply on Nov 7, 2013 12:05 AM by ilape

    Columns incorrectly omitted when using states: AdvancedDataGridColumn, includeIn

    Jadware

      When setting the includeIn property of any column in an AdvancedDataGridColumn array, the first column that is set to include is the only column shown, regardless of the includeIn or excludeFrom directives of the other columns.  The code below should show a datagrid with two columns, but only the first one appears.

       

      Does anyone have any idea why?  The behavior is correct for regular DataGrid, only incorrect for AdvancedDataGrid.

       

       

      <?xml version="1.0" encoding="utf-8"?>

      <s:Application

       

       

      xmlns:fx="http://ns.adobe.com/mxml/2009"

      xmlns:s="

      library://ns.adobe.com/flex/spark"

      xmlns:mx="

      library://ns.adobe.com/flex/mx"

      currentState="

      A">

       

       

      <s:states>

       

       

      <s:State name="A"/>

       

       

      </s:states>

       

       

       

      <mx:AdvancedDataGrid>

       

       

      <mx:columns>

       

       

      <mx:AdvancedDataGridColumn headerText="col 1" includeIn="A"/>

       

       

      <mx:AdvancedDataGridColumn headerText="col 2" includeIn="A"/>

       

       

      </mx:columns>

       

       

      </mx:AdvancedDataGrid>

      </s:Application>