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

[Solved] Problem with custom binding and paging

3 Answers 119 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul den Dulk
Top achievements
Rank 1
Paul den Dulk asked on 17 Jun 2010, 11:41 AM
Hi!

In our use of the Telerik asp.net mvc grid we fetch only the records needed from the db that are shown in the grid. We use custom binding as in the example here


We also use ajax editing like in the example here:


Both technologies work well in isolation but if we combine them the page count information seems to get lost after doing an insert, delete or update. In debug mode I can see the Total count returned is correct. Doing a refresh (and thus calling the regular _SejectAjaxBinding) restores the paging. Any idea what could be going on?

Paul.

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 17 Jun 2010, 12:13 PM
Hi Paul den Dulk,

Is there a chance to send us a sample project illustrating the problem you are experiencing? You can use some free file hosting web site (dropbox.com, skydrive.live.com etc) to share the project with us.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Houssam
Top achievements
Rank 1
answered on 07 Mar 2011, 12:34 PM
Hi Atanas,

We are having the same issue paul is facing.

We need to do custom binding with editing capabilities (Ajax). On the controller side, it is not right to return all the rows from the db, as per your sample project, especially when you have tables with millions of records. Therefore, we proceed with custom binding mechanism where you only request 10 rows, for example, from the db server instead of requesting millions of rows each time you need to post data to the server.

Please let us have, if possible, a project including custom binding with editing capabilities fetching only the required data from the database for each post request.

Thank you in advance for your cooperation.
0
Houssam
Top achievements
Rank 1
answered on 07 Mar 2011, 12:47 PM
Hello Paul,

I think you forgot to include [GridAction(EnableCustomBinding = true)] attribute for the relevant action.

Cheers
Tags
Grid
Asked by
Paul den Dulk
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Houssam
Top achievements
Rank 1
Share this question
or