Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
Overriding Sorting Behaviour
posted

When a user clicks on a column header I want to be able to specify my own behaviour/method, when have a web service that we call to bring in the data, and to this we pass page and sort order etc.. Due to our application we can't simply bring all records into the UI then sort, even with UI virtualization.. In current setup its obviously only performing sorting on the current page. 

 Does xamDataGrid support this basic level of extensibility ? I've searched the docs and expect to find a typical .Net framework events system, however I've met a restrictive enum LabelClickAction?


 

 

 

 

Parents
  • 4850
    Offline posted

    We don't currently have that capability baked in, we do offer this type of external sort capability in our wingrid but not yet in the XamDataGrid. In order to do what you want to do you would need to set the LabelClickAction to 'Nothing' and sort the DataSource yourself when the user clicks on a LabelPresenter. You would also need to provide a template for the LabelPresenter to show the sort indicators.

Reply Children
No Data