FlexGrid Initialization of Sort Status

Posted by: john.kiowski on 6 April 2020, 4:00 am EST

  • Posted 6 April 2020, 4:00 am EST

    We're using the FlexGrid to display complex data sets that the user can sort by clicking the column headers. In the past, we've used the CollectionView to indirectly initialize the grid to the user's previous session state, including the state of the sorted column. However, we had to stop using the CollectionView due to performance reasons.

    My question is whether or not there's any way to initialize the FlexGrid to the previous sort state on startup? I don't see anything in the interface for achieving this without using a CollectionView. I thought of trying to fire a click event at the column header to simulate the user sorting the column, but I don't see a click event on the Column interface. Do you have any suggestions for setting the column sort state?

    Thanks,
    John
  • Marked as Answer

    Replied 7 April 2020, 12:11 am EST

    Hello,

    Unfortunately, there is no way to reload sort state other than using C1CollectionView. C1CollectionView provides sorting (filtering, grouping, etc) implementation to Flexgrid.
    Regarding the performance issue in using C1CollectionView, did you use CustomSort property and use DeferRefresh method as suggested here: https://www.grapecity.com/blogs/uwp-flexgrid-performance-review

    ~Regards,
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels