jQuery UI Widgets Forums React sorting

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 5 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    sorting Posts
  • sorting #103999

    ganesh
    Participant

    Hi there,

    How disable sorting on click on column title but allow for click on arrow in jqxGrid?

    Thank you
    Ganesh.

    sorting #104096

    Hristo
    Participant

    Hello ganesh,

    I would like to suggest you look at our API Documentation page:
    https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-api.htm?search=grid
    For example, the sorttogglestates could provide you a suitable option that you could disable toggling (0) and use only the API.
    Also, another option is to bind to the columnclick event and to prevent sorting in that case as you remove sorting when clicking there.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    sorting #104112

    ganesh
    Participant

    Hi Hristo ,
    Thanks for reply But I already used this on sorttogglestates={‘0’} -disable for all sorttogglestates={‘1’} & sorttogglestates={‘1’} – same work enable for all I want this type How disable sorting on click on column title but allow for click on arrow in jqxGrid.
    In column renderer I added button and on buttonclick I want to perform some action so in columnclicked event prevent sort.
    const columnClicked = (e) => {
    console.log(e);
    e.preventDefault(); Not working
    e.stopPropagation(); Not working
    }
    Thank you
    Ganesh

    • This reply was modified 5 years, 2 months ago by  ganesh.
    sorting #104164

    Hristo
    Participant

    Hello ganesh,

    Is this is what you want to achieve?
    Please, take a look at this example.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.