Sorting getting enabled on header click

Posted by: sdayal on 14 September 2021, 8:20 pm EST

  • Posted 14 September 2021, 8:20 pm EST

    Hi team,

    Below solution was provided for disabling the sorting on header click.
    e => {
    if ('wj-state-active')) {
    var selection = window.getSelection();

    let ht = grid.hitTest(e);
    if ('wj-header') &&
    ht.cellType == wjGrid.CellType.ColumnHeader
    ) {

    Refer line ( 301 to 320)
    Snippet :-

    But if you see in the gif attached below even though we have disabled sorting on header click but if we continuously click on the header it gets sorted and this behavior is more prominent in our case because as we navigate from different pages we end up getting sorting done by header click .

    How can we remove sorting from header ?
    PS: Sorting should only be done using the sorting icon provided.

    Please provide solution.

  • Replied 15 September 2021, 3:07 pm EST

    Hi team,

    Can you please provide solution for this.

  • Replied 15 September 2021, 3:35 pm EST


    As per the observation, the sorting on clicking the column header occurred when we click on the mandatory-symbol, I have updated the sample to only work on the sorting buttons. Please refer to the updated sample link below:

    Let us know if you face any issues.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels