You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Benoit St-Hilaire (JIRA)" <ji...@apache.org> on 2013/10/25 21:54:30 UTC

[jira] [Created] (FLEX-33850) locked column of datagrid not updated when dataprovider is changing.

Benoit St-Hilaire created FLEX-33850:
----------------------------------------

             Summary: locked column of datagrid not updated when dataprovider is changing.
                 Key: FLEX-33850
                 URL: https://issues.apache.org/jira/browse/FLEX-33850
             Project: Apache Flex
          Issue Type: Bug
          Components: Spark: DataGrid
    Affects Versions: Apache Flex 4.10.0
         Environment: Windows 7.1
            Reporter: Benoit St-Hilaire


When adding data to the datagrid, the locked section of the datagrid is not udpdated.

Here is a sample application to reproduce :

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
    <fx:Script>
        <![CDATA[
            import spark.utils.DataItem;

            protected function addMoreData(event:MouseEvent):void {
                var dataItem:Object = new Object();
                dataItem.call = "false";
                dataItem.key = "1010";
                dataItem.name = "Kilo";
                dataItem.price = "200.10";
                dataArray.addItem(dataItem);
            }
        ]]>
    </fx:Script>
    <fx:Declarations>
        <s:ArrayCollection id="dataArray">
            <fx:Object call="false" key="1000" name="Abrasive" price="100.11" />
            <fx:Object call="true" key="1001" name="Brush" price="110.01" />
            <fx:Object call="false" key="1002" name="Clamp" price="120.02" />
            <fx:Object call="true" key="1003" name="Drill" price="130.03" />
            <fx:Object call="false" key="1004" name="Epoxy" price="140.04" />
            <fx:Object call="true" key="1005" name="File" price="150.05" />
            <fx:Object call="false" key="1006" name="Gouge" price="160.06" />
            <fx:Object call="true" key="1007" name="Hook" price="170.07" />
            <fx:Object call="false" key="1008" name="Ink" price="180.08" />
            <fx:Object call="true" key="1009" name="Jack" price="190.09" />
        </s:ArrayCollection>
    </fx:Declarations>

    <s:Button label="Add More" click="addMoreData(event)" />

    <s:DataGrid id="dataGrid" dataProvider="{dataArray}" maxWidth="400" horizontalCenter="0" lockedColumnCount="1" requestedRowCount="5" selectionMode="singleCell" variableRowHeight="true"
                verticalCenter="0">
        <s:columns>
            <s:ArrayCollection>
                <s:GridColumn width="100" dataField="key" />
                <s:GridColumn width="100" dataField="call" />
                <s:GridColumn width="100" dataField="name" />
                <s:GridColumn width="150" dataField="price" />
            </s:ArrayCollection>
        </s:columns>
    </s:DataGrid>
</s:Application>

To reproduce :

* Start Application
* Click "Add More" couple of time.
* Scroll to the bottom of the datagrid.
** You will see that the new data is not shown on the locked column.




--
This message was sent by Atlassian JIRA
(v6.1#6144)