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
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
Thanks for the help. That's basically what I concluded, but I wanted to double check. I didn't use that exact method, but utilized the same idea.
Regards,
Thank you for your feedback. Please feel free to post to this thread if you have any further questions.