Skip to content

Infragistics Community Forum / Web / Ignite UI for jQuery / igGrid Row Selection Disable

igGrid Row Selection Disable

New Discussion
Ben
Ben asked on Nov 25, 2014 4:11 PM

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

Sign In to post a reply

Replies

  • 0
    Hristo Anastasov
    Hristo Anastasov answered on Nov 25, 2014 11:00 AM

    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

    • 0
      Ben
      Ben answered on Nov 25, 2014 4:00 PM

      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,

      Ben

      • 0
        Hristo Anastasov
        Hristo Anastasov answered on Nov 25, 2014 4:11 PM

        Hello Ben,

        Thank you for your feedback. Please feel free to post to this thread if you have any further questions.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Ben
Favorites
0
Replies
3
Created On
Nov 25, 2014
Last Post
11 years, 10 months ago

Suggested Discussions

Tags

Created by

Ben

Created on

Nov 25, 2014 4:11 PM

Last activity on

Nov 25, 2014 4:11 PM