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
585
Make the button inside a column disabled
posted

I have a button added to a igGrid column.  When I call deleteRow() for the selected row, I want to have that button disabled (un-clickable). How can it be achieved?

Note that I cannot make the column with button hidden because the entire grid has more than one row and some are editable (non-deleted row).

Thanks!

Parents
No Data
Reply
  • 23953
    Verified Answer
    Offline posted

    Hi Erica,

     

    This can be achieved by adding disabled attribute to the button. In order to add the attribute (to the button) you need a way to identify the button. The easiest way is by attaching data-* attribute with the value of the Primary Key of the row.

    Attached you can find a sample which demonstrates the described solution.

     

     

    Hope this helps,

    Martin Pavlov

    Infragistics, Inc.

    igGridUpdating_button_column.zip
Children