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

2 posts, 0 answers
  1. Milan
    Milan avatar
    12 posts
    Member since:
    Mar 2016

    Posted 25 Apr Link to this post

    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

  2. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    419 posts

    Posted 25 Apr Link to this post

    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
Back to Top