Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1175
Unsort Column API call
posted

v14.2

Calling the unsortColumn method causes an iggridsortingcolumnsorted event to bubble up.  The documentation reads that no API calls will invoke events so this is incorrect behavior.

Looking at the debug code, the variable "apiCall" is always set to false which makes the events.columnSorted event fire.

Parents
  • 17590
    Offline posted

    Hello Karthik,

    Thank you for posting in our community.

    I investigated this matter further and on my side columnSorted even is never fired when unsorting is triggered from the API. I debugged the code and I found in case that unsorting is coming form an API call the apiCall variable is true and respectively events are not fired. I am attaching my sample for your reference. Please test this simple pplication and let me know what is the result on you side.

    If this is not an accurate demonstration of what you are trying to achieve please feel free to modify my sample and send it back to me. This is going to be highly appreciated and will help me identify the rot cause of this matter.

    Additionally, please keep in mind that in order to use the unsortColumn method the sorting mode  option should be set to multi in version 14.2. For example:

    $(".selector").igGrid({

        features : [
            {
                name : "Sorting",
                mode : "multi"
            }
        ]
    });

    In version 15.1 unsorting columns could be applied even if the sorting mode is set to single.

    I hope you find my information helpful.

    Please let me know if you need any further assistance with this matter.

    igGridUnsortColumnAPI.zip
Reply Children
No Data