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

Peter Ent commented on FLEX-35224:
----------------------------------

The paging aspect just means you want to present multiple items at a time, not 
a single item, but the process is the same. In FlexJS, there's no "demand" 
except when the data provider signals it has changed. Your paging button would 
cause the data provider to refresh itself in some way and then dispatch an 
event. The component presenting the item renderers (i.e., "virtual" DataGroup) 
would need to figure out what to do to present this new information. Probably 
something like make a pass through the itemRenderers it already has (since you 
aren't scrolling, it is effectively a refresh of the  itemRenderers) and giving 
them the new data. The itemRenderers would then have to respond by redrawing 
themselves using the new data.

I think you need a new DataGridView that creates the controls you need and you 
can either make a new DataGridLayout or just make your DataGridView do the 
work. The "DataGrid" in FlexJS is the sum of its beads, nothing more. If you 
have your own view, model, data group, item renderer factory, etc. then any 
changes to the DataGrid beads in FlexJS will have no effect on your work. What 
you probably do not need to do is change the logic of the Container and its 
beads since you can just use those to hold your own grid pieces.

Yes, it is a completely new view, but that's how pay-as-you-go works. Often you 
have to just replace something completely.

> 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: FilesOfPagingDataGridUsingBeads.zip, 
> PagingDataGridAsBeads.patch, TestPagingDataUsingBeads.zip, 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