jQWidgets Forums

jQuery UI Widgets Forums Grid Sorting order – Gridview

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Sorting order – Gridview #70713

    ajit
    Participant

    Hi JQWidgets support,

    Good evening!

    Description:

    In a grid, I have a column in which sorting is applied. All working fine. But i need this.

    Example:
    Emp No. Emp Name DOJ
    ——- ——— ——–
    1 Roser 20/5/2013
    2 Mok
    3 Tom 11/3/2015
    4 Jojo 6/3/2013
    5 Tim 10/3/2015

    Asc and desc on DOJ works fine. But I need result should not consider NULL or blank values, these should always at the bottom.

    Like this: In case of Ascending order.
    Emp No. Emp Name DOJ
    ——- ——— ——–
    4 Jojo 6/3/2013
    1 Roser 20/5/2013
    5 Tim 10/3/2015
    3 Tom 11/3/2015
    2 Mok

    Like this: In case of descending order.
    Emp No. Emp Name DOJ
    ——- ——— ——–
    3 Tom 11/3/2015
    5 Tim 10/3/2015
    1 Roser 20/5/2013
    4 Jojo 6/3/2013
    2 Mok

    Please help, it urgent.
    Thank you!

    Ajit

    Sorting order – Gridview #70728

    Peter Stoev
    Keymaster

    Hi ajit,

    If you need custom sotring, you will have to use this approach: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/customsorting.htm?arctic

    Best Regards,
    Peter Stoev

    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.