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
40
igGrid Row Selection Disable
posted

Hi,

I am unable to figure out a way to disable the row selection feature of the igGrid while a POST is occuring.  Let me explain my example:

We have our own ajax calls happening upon a button click.  I am able to disable my button during the POST, however, if the user selects or deselects a row, the button will re-enable since I have its state changing during the 'iggridselectionactiverowchanged' event of the grid. So what I would like to do is also disable row selection until the POST is finished.  Is this possible?

I didn't see any specific method or option for turning row selection on or off after initialization.  Is there any built in method for that or will I have to create my own boolean tracking in my javascript functions?

Cheers,

Ben

Parents
No Data
Reply
  • 16310
    Verified Answer
    Offline posted

    Hello Ben,

    Thank for posting in the Infragistics community !

    You cannot turn the igGrid selection feature on or off. What you can do is handle the activeRowChanging event and cancel the event if there are any active ajax requests happening:

    activeRowChanging: function (evt, ui) {
     if (jQuery.active > 0) {
      return false; // cancelling the selecting event
     }
    }

    Please let me know if you have further questions on the issue, I will be glad to help

Children