jQWidgets Forums

jQuery UI Widgets Forums Grid Initial sort direction per column

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Initial sort direction per column #61208

    samh
    Participant

    Hello,

    Is there a way to tell the grid the initial sort direction for each column?

    For example, for certain numeric columns, the first time the user clicks the column header, I want it to sort in descending order. For other columns, containing text for example, I want the initial sort direction to be ascending.

    Currently all columns sort ascending order the first time you click the column header.

    I considered using a custom sort function but this seems heavy handed, and the column sort direction indicator would be wrong.

    Thanks in advance.

    Initial sort direction per column #61227

    Dimitar
    Participant

    Hello samh,

    Unfortunately, there is no such functionality in jqxGrid’s API. You may, however, set the sorttogglestates property to 0 to make users choose sorting direction from the sort menu.

    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.