jQuery UI Widgets Forums Grid Keep sorting state for grid after postback

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 8 years, 8 months ago.

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

  • chuonchuonot
    Participant

    Hello everyone,
    I have an issue need your help.
    My jqwidgets grid has 3 columns (DocumentType, DocumentDate, DocumentTitle) allow sort. At the same time, the data is sorted by one column.

    This is my case:

    I click on sort ascending for DocumentType.
    The ascending arrow is displayed on the header of column DocumentType.
    The selecting for “Sort ascending” is disable. Only “Sort descending” is clickable.
    I make a postback in the page (I implement that the data is still kept sorting).
    However, the state of grid is not keep any more: There is no ascending arrow is displayed on the header of column DocumentType. Both selecting for “Sort ascending” and “Sort descending” are clickable although the data is sorted ascending for DocumentType but there

    Therefore, I would like to keep the sorting arrow of after postback. Could you please help me?

    Thank you so much!
    Best regards,
    Phuc


    Dimitar
    Participant

    Hello Phuc,

    To achieve this, you would have to implement server-side sorting. A working example can be seen here: http://www.jqwidgets.com/jquery-widgets-demo/demos/php/serversorting.htm. You can read a more detailed explanation of this functionality in the help topic Server Side Sorting with jqxGrid using PHP and MySQL. We also have examples with the server technologies ASP.NET and JSP. You can find these in their respective sections of the Demo and Documentation pages.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.