Hi, I believe asking for code directly from members in the forum is a bad way of going about solving a problem, as a programmers you should write the code by yourself and then take pointers from the group members instead of asking the code directly.
Regards, Saurabh http://blog.saurabhnarula.com/ On Fri, Feb 25, 2011 at 11:14 AM, Santosh <[email protected]> wrote: > Hi, > > The paging concept will remain same even for data grid or grid > > For grid u need to loop the collection and create the grid items > dynamically. > EX: > var mainData: ArrayCollection with 20 objects. > write a method and pass start and end index and get the data from > collection > > var pageData:ArrayCollection = mainData.toArray().source(start,end); > loop the pageData and add the elements dynamically to the grid > > > On Feb 24, 4:39 pm, madhavi chinni <[email protected]> > wrote: > > Hi, > > > > I want to add Paging for <mx:Grid>(not the DataGrid). > > Requirement: > > I have an ArrayCollection which is having some n elements.I am adding > > the data in the ArrayCollection to Grid dynamically.I want to divide > > the total ArrayCollection and display them as pages.Ex:suppose > > ArrayCollection is having 10 elements I want to display 5 per each > > page(Grid will have only 5 items).When ever I click on that Page > > number the data in that page should be displayed(normal paging > > algorithm) > > I searched in Google but I got the code to add paging for DataGrid not > > the Grid :( > > > > Any help is greatly appreciated... > > > > Thanks, > > Madhavi > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

