jQuery UI Widgets Forums Grid sorting column with date

Tagged: , , ,

This topic contains 4 replies, has 3 voices, and was last updated by  rmanev 11 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • sorting column with date #17091

    naatha
    Member

    Hi,

    I am trying to sort a column with date format. But the sort look like string sort.

    How can i sort date?

    Thank you

    sorting column with date #17092

    Dimitar
    Participant

    Hello naatha,

    Please check out the demo Sorting to see how to implement date sorting.

    Best Regards,
    Dimitar

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

    sorting column with date #17093

    naatha
    Member

    Hi Dimitar,

    It is working…… Thank you very much

    Is it possible multiple column sort one after another?

    Thanks

    sorting column with date #17099

    Dimitar
    Participant

    Hi naatha,

    You may call the method sortby multiple times for different colums. You can learn more about it in jqxGrid’s API Documentation.

    Best Regards,
    Dimitar

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

    sorting column with date #17501

    rmanev
    Member

    Hi Dimitar,

    In the API Documentation as you referring to is a section Method and method “sortby” which I guess you mean in your answer. However, we are only available to sort column once in a time.

    Let say we have three columns name, date, points.
    By default we don’t have any sorting in the grid, and if I call:
    $(‘#competitors’).jqxGrid(‘sortby’, ‘points’, ‘desc’);
    $(‘#competitors’).jqxGrid(‘sortby’, ‘date’, ‘asc’);

    First it would sort by points and than will sort by date – disregarding first sorting. Instead, is there a way to keep the points sorting called firs and then sort by dates but keeping points sort as it is on first place?

    I hope I express myself understandable.

    Rosen.

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

You must be logged in to reply to this topic.