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

[Solved] Custom non-Ajax data binding to Grid, has anyone tried?

2 Answers 27 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.
Shreyans
Top achievements
Rank 1
Shreyans asked on 13 Apr 2012, 12:29 AM
Hi,
     I am trying to bind data myself rather than Ajax taking care of everything. The reason I am doing this is because the back-end data source does not filter and send data. Earlier we used to filter the data on server and bind a portion of it to 3 different grids on server side. but there is huge Perf penalty takes about 9 secs to page load. Then I made it to work with client side Ajax, now the problem is each grid request data from the same back-end data source and the same data is retrieved 3 times and filtered.
   To avoid this I am basically triggering a Ajax call to server which then requests the back-end, once server receives data it will filter and return JSonResult. but how do I bind the data to these grids on client side.
Any hint is appreciated.
Thanks
-Shreyans

2 Answers, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 13 Apr 2012, 07:09 AM
Hi Shreyans,

 In such  case you should use the dataBind method to bind the Grid to a specified array of objects. Also you will need to enable the ClientOperation mode and set the total field exposed by the client object of the grid to a valid value.

Regards,
Petur Subev
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Shreyans
Top achievements
Rank 1
answered on 13 Apr 2012, 07:17 PM
Thanks very much it work, but now I lost sorting functionality/
Tags
Grid
Asked by
Shreyans
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Shreyans
Top achievements
Rank 1
Share this question
or