Hello Venkatesan,

  Here is the code for pagination,
 You just need to send a parameter, to the PHP file like how many records
you want to retrieve per page.

and another parameter is that which page you want to get it.

For example for the first the first time if you are retrieving the values
from the data base and you want 10 records , you send the parameters as
pageNum = 0 and pageSize = 10 and build a query as such,

$start = $pageNum * $pageSize; // To calculate which page to retrieve

$query_recordset =  "select * from <your table> limit ".  $start . ",  "
. $pageSize ;


If you use the default php generated by flex you will have every thig there,
you just need to send 2 extra paremeters.


On Wed, Feb 17, 2010 at 11:05 AM, Venkatesan Ramdoss <
venkat.ramd...@gmail.com> wrote:

> hi,
>
> My table consists more than 200 records.I have to display in the
> datagrid in Flex.
>
> My question i have to display first ten records.When a user scrolls in
> the datagrid it will display the next 10 records .... like that until
> all the records from the table to be display in the Datagrid.
>
> Please find me the solutions to solve the problem.
>
> Thanks and Regards,
> venkat.R
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to flex_in...@googlegroups.com.
> To unsubscribe from this group, send email to
> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>


-- 
Regards,

Sri Tej
Golive Gaming Solutions PVT LTD
ph - 9703224405

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_in...@googlegroups.com.
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to