This is a migrated thread and some comments may be shown as answers.

custom paging

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ghadeer
Top achievements
Rank 1
ghadeer asked on 31 Dec 2008, 11:42 AM
Hello All,
how can I do custom paging for rad grid..
I read this tutorial
http://demos.telerik.com/aspnet/grid/examples/programming/CustomPaging/DefaultCS.aspx

but I couldnt understand??


could anyone help me



thanks
ghadeer

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Jan 2009, 04:52 AM

Hi Ghadeer,

 Custom paging allows you to fetch only a fixed number of records so that you can perform operations on this limited set of data.


To use the custom paging mechanism:

  1. Set the grid or table view's AllowPaging and AllowCustomPaging properties to True.
  2. Set the table view's VirtualItemCount property to the total number of records that the grid can draw on. This allows the pager item to correctly represent the size of the pages you implement relative to the total number of records possible.
  3. Bind your grid using the NeedDataSource event. In the NeedDataSource event handler, implement code logic to extract the desired fixed number of records, based on the PageSize and CurrentPageIndex properties of the grid or table view.
Custom Paging

Shinu
Tags
Grid
Asked by
ghadeer
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or