I am using custom paging in my grid with a ObjectDataSource. I have read that we can also do custom paging using the NeedDataSource event. I would like to know what is the criteria to select the method (ObjectDataSource or NeedDataSource ).
1 Answer, 1 is accepted
answered on 16 Mar 2009, 08:04 AM
When using simple data-binding, you do not need to call the DataBind method when loading the page on postbacks; after postback RadGrid uses the ViewState to recreate the data. You do, however, need to assign the data source and rebind the grid after any data operation such as paging, sorting, editing, and so on.
The NeedDataSource event is especially designed to facilitate the work of the developers as you do not need to handle any sorting/paging/grouping/filtering/etc. commands manually. Under such circumstances Telerik RadGrid will be "smart enough" to perform the corresponding operation automatically.
More information about simple data binding is available in the following articles: Help topic Demo