[ 
https://issues.apache.org/jira/browse/FLEX-35224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15784965#comment-15784965
 ] 

Pan Li commented on FLEX-35224:
-------------------------------

I had created one paging grid as a FlexJS mxml, the basic structure:
the component 
{code}
<js:Container>
        <fx:Script>
                <![CDATA[
                      private var _columns:Array;
                      private var _dataProvider:Object;
                      function processPage()
                      {
                          datagrid.dataProvider = _dataProvider;
                          ......
                      }
                ]]>
        </fx:Script>
<js:DataGrid>
<js:beads>
<js:ConstantBinding source is column of customer control, target is 
provider.column/>
<js:beads>
</js:DataGrid>
<js:ContainerForPagingButtons/>

<js:Container>
{code}

use the control, same to normal datagrid
{code}
<local:PagingDataGridByComposite>
                        <js:beads>
                                <js:VerticalLayout/>
                                <js:ConstantBinding
                                        sourceID="applicationModel"
                                        sourcePropertyName="productList"
                                        destinationPropertyName="dataProvider" 
/>
                                
                        </js:beads>
                        <js:columns>
                                <js:DataGridColumn label="Image" 
dataField="image" columnWidth="30" itemRenderer="products.ProductItemRenderer" 
/>
                                <js:DataGridColumn label="Title" 
dataField="title" columnWidth="20" />
                                <js:DataGridColumn label="Sales" 
dataField="sales" columnWidth="30" />
                        </js:columns>
                        
                </local:PagingDataGridByComposite>
{code}


the full source (control with sample code to use it):
!src.zip!


> DataGrid doesn't support paging on large data set
> -------------------------------------------------
>
>                 Key: FLEX-35224
>                 URL: https://issues.apache.org/jira/browse/FLEX-35224
>             Project: Apache Flex
>          Issue Type: Improvement
>            Reporter: Pan Li
>            Priority: Minor
>         Attachments: screenshot-1.png, src.zip
>
>
> expected:
> Gird should support paging if data collection is large
> !screenshot-1.png!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to