ItemsSource after sort

Posted by: chandrasekar_keerthana on 19 March 2020, 10:32 pm EST

  • Posted 19 March 2020, 10:32 pm EST

    Hi Team,
    We are using Wijmo flexsheet with observableArray as the itemsource for the sheet. On sorting the sheet, we observe that the itemsSource of the sheet isn't getting updated with the new order of rows. This is causing trouble as we try to update few values from the code and save the records.
    Please let me know if there's a way to obtain the sorted dataset from the sheet.

  • Marked as Answer

    Replied 22 March 2020, 4:54 pm EST

    Hi Keerthana,

    When we sort a FlexSheet, the actual data is not sorted. It remains in the same position. The sorted data (and filtered data) is stored in the items property of the CollectionView. Please refer to the sample below for reference:

  • Replied 22 March 2020, 11:29 pm EST

    Thanks for your response Ashwin. That's exactly what I was looking for.
Need extra support?

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

Learn More

Forum Channels