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

radgrid clentside pagination while updating and inserting records from web service

1 Answer 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amandeep
Top achievements
Rank 1
Amandeep asked on 14 Nov 2012, 08:25 PM
Hello there,

I have gone through the solutions that telerik has posted such as:
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-clientside-pagination.aspx

What I am trying to do is calling webservice methods to update and insert records but the result set contains all the records which are displayed on a single page when I try to bind it on client side. Please give me a solution to solve this issue. 

Test scenario: Select a page other than page 1 and try to edit or insert a record. The updated/inserted record should be selected by default. But it is not working as desired.

Thanks 

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 19 Nov 2012, 03:31 PM
Hi,

 When you are using client-side binding the grid retrieves only the records for the current page.
You can check how to use client-side paging and update/delete operations in the following demos:
Grid / Declarative Binding
Grid / Client-Side Insert/Update/Delete
You can combine the approaches to achieve the desired effect.
By default the grid makes a service call on every page change. To prevent this behavior you can cash all the records from the service on the client and pass only the needed set of records for the current page - similar to the use of custom paging as suggested in the forum thread that you referenced.

All the best,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Amandeep
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or