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
445
Grid column readonly condition
posted

Hi,

I'm working with iggrid in mvc. I have a grid with checkbox and this checkbox should be readonly if match count is > 0.

MODEL:

MatchCount

IsActive

GRID:

@Html.Infragistics().Grid(Model)

$(document).delegate("#sales-last-grid", "iggriddatarendered", function (evt, ui) {

gridRendered(evt, ui);

});

JAVASCRIPT:

gridRendered(evt, ui){

     // Here I want to check the readonly status by match count. What I did is:

var grid = $("#grid");

 

var dataview = grid.data('igGrid').dataSource.dataView();

 

dataview.forEach(function (obj, index) {

if (obj.MatchCount == 0) {

 ????  HERE I DONT KNOW HOW TO MODIFY READONLY VALUE

}

});

}