This topic contains 1 reply, has 2 voices, and was last updated by  Abhishek Dutta 4 days, 12 hours ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #108562

    rambabu
    Member

    Wijmo Subscriber

    Hi guys,

    Our Client is looking for functionality to store the state of “flex grid” in local-storage or cookie.
    When grid been filtered or sorted, State Need to save in browser,
    When the page reloads and refreshes it must retain same filter or “sort order”.

    I can’t make default sort-order in the grid because different user likes different sort order.
    changed order needs to save and need to recall.

    Regards,
    Rambabu

    #108581

    Abhishek Dutta
    Moderator

    For Saving Filters. Please refer to this post which details how to save FlexGrid Filter to LocalStorage

    For Saving Sorting State: Please use the Sort Descriptions Property:

    var sortState: any[] = [];
    for (let description of grid.itemsSource.sortDescriptions) {
    sortState.push({
    property: description.property,
    ascending: description.ascending
    });
    }

    Thanks,
    Abhishek

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.