jQWidgets Forums

jQuery UI Widgets Forums Grid grid sort

Tagged: 

This topic contains 7 replies, has 2 voices, and was last updated by  Peter Stoev 11 years ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    grid sort Posts
  • grid sort #55772

    Siva
    Participant

    Hi team,

    In Grid, we have sorting option on grid header. Here i have an query: Initially the grid loaded, we have some data in some order. Once click on the top of header its sort by “ASC”(first click) and (second click) its sort by “DESC”. After that (third click) click on that top it shows some data in some order. So Initial we have some order and third click we have some order of data. Question is:
    1) How can i equalize both (initial and third click data) ? or
    2) How can i remove third click option? or
    3) Is there JqxGrid behaviour?

    Please reply.

    grid sort #55789

    Peter Stoev
    Keymaster

    Hi Siva,

    The solution is: Set the sorttogglestates property to 1. Example: http://jsfiddle.net/jqwidgets/nqfuL/

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    grid sort #55826

    Siva
    Participant

    Thanks peter,

    From this we can able to disable the third click option.

    Is there any other way to control the Initial data load and third click data load?

    grid sort #55834

    Peter Stoev
    Keymaster

    Hi Siva,

    The Sorting demo – http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/sorting.htm?arctic shows how to apply initial sort.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    grid sort #55872

    Siva
    Participant

    Hi team,
    In grid, How to disable the sort for a column only?
    Thanks in advance.

    grid sort #55883

    Peter Stoev
    Keymaster

    Hi Siva,

    You can set the “sortable” property of any column to false in order to disable its sorting.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    grid sort #55886

    Siva
    Participant

    Hi peter,

    $(‘#jqxGrid’).jqxGrid({ sortable: false});

    Its use for the whole grid, but i want a column to be sort as false or disable the sort. Please help me.

    Thanks in advance.

    grid sort #55889

    Peter Stoev
    Keymaster

    Hi Siva,

    I wrote you that you can set the sortable property of a column. You should not set it to the whole Grid because that would disable the sorting for all columns.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.