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

[Solved] Disable Default Grid Sorting

1 Answer 174 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
HARSH
Top achievements
Rank 1
HARSH asked on 31 Aug 2010, 06:04 PM

I want to disable default grid sorting and want to provide my own server side sorting from a webservice.
I am returning new result set  when user is sorting and binding new resultset with Gridview again. The sorted result which my service is returning is again sorted by default grid view sorting.Even if i am cancelling the default sorting and calling my webservice it is sorting my resultset.

 

 

 

void RadGrid_Sorting(object sender, GridViewSortingEventArgs e)

 

{

e.Cancel=true;
//Webservice call
}
I tried to clear sort descriptors but after that the sort direction details is geting cleared and grid view is not showing on which column we have sorted the result..
How to disable RadGrid's default sorting behaviour and implement our own behavior.

Thanks in advance.

 

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 01 Sep 2010, 06:56 AM
Hello,

 You can use the approach from this blog post - custom QueryableCollectionView. 

Sincerely yours,
Vlad
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
Tags
GridView
Asked by
HARSH
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or