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

Client-side sorting?

2 Answers 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 31 Mar 2011, 03:32 AM
Is there any client-side sorting capability for the radGrid? (Such as you get with jQuery DataTables)

I have a radGrid where I'm filling one column on the client after the page is loaded. If I use the postback sorting functionality, then this data is lost, and will need to be regenerated. Client-side sorting would avoid this (and perform better by avoiding the server round trip delay).

The data I'm putting into the column is FLOT charts, plotted using data pulled down via a web service call. I store the data in the client to allow redrawing of larger versions of the chart, and plotting of alternate views/datasets.

It looks like server roundtrips, such as the postbacks on sorting, and opening of details tables loses all the stored data - I guess not surprisingly, as it's basically a new page to the browser, but it means that not only do I need to redraw the charts in the grid, but I also have to pull down the data again.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 31 Mar 2011, 12:36 PM
Hello John,


I hope the following video would be of help in sorting radgrid from client side.
RadGrid for ASP.NET AJAX - Client-Side Sorting

Also go through the follwoing documentation:
RadGrid for ASP.NET AJAX client-side databinding to OData services


Thanks,
Princy.
0
John
Top achievements
Rank 1
answered on 05 Apr 2011, 08:52 PM
Thanks for the answer.

The links you provide are talking about binding the grid to a web service data source, and then when the sorting is done, it uses the web service again to get a sorted view of the same data.

This is different from pure client side sorting (such as that in jQuery DataTables) where you can simply resort the data already available in the table, without having to re-request it from the server.

I guess I'll have a play to see if I can use DataTables on top of the RadGrid's table, otherwise I may just try doing it without the RadGrid.

If neither of those works well, I guess I'll try the RadGrid again, but use the WebSerivce binding again, so I at least won't need to download my chart data again after a sort - I'll just need to redraw the Flot charts in the updated grid.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
John
Top achievements
Rank 1
Share this question
or