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

[C#][UWP] How to suppress default sorting in RadDataGrid

1 Answer 71 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
Milan
Top achievements
Rank 1
Milan asked on 25 Apr 2017, 07:02 AM

Hi Team,

I need to use sorting behavior of my own. I supposed to suppress the default sorting behavior and apply my own sorting through my implemented api. And for that, I handled the DataBindingComplete event of RadDataGrid and can perform custom sorting. But the issue is the default sorting is also performed in between my api returns the data.

Could you please help me to get rid off this issue asap?

Regards

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 25 Apr 2017, 04:50 PM
Hi Milan,

To manage sorting, you need to work with the sorting mechanism of the DataGrid, the SortDescriptors. These operate on the data after DataBindingComplete is fired, see here for how to use SortDescriptors.

Side-Note:
You can also disable sorting on a column by setting CanUSerSort="False";

Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
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 Feedback Portal and vote to affect the priority of the items
Tags
DataGrid
Asked by
Milan
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or