0

I need to make a row read only based on,changing the cell value of the corresponding row using jQuery.I am using angular IgGrid(Infragistics).

Konstantin Dinev
  • 34,219
  • 14
  • 75
  • 100

1 Answers1

0

You can handle the editCellEnded event of the igGridUpdating, and apply ui-state-disabled class to the row based on the value of the cell.

$(".selector").igGrid({
    features : [
        {
            name : "Updating",
            editCellEnded: function(evt, ui){
                if (ui.value === valueToDisabledOn) {
                    $(".selector").igGrid("rowById", ui.rowID)
                                  .addClass("ui-state-disabled");
                }
            }
        }
    ]
});
Konstantin Dinev
  • 34,219
  • 14
  • 75
  • 100