I use the JS function below to set select rows to readonly. The Action column is set correctly. And inline editing is indeed disabled as it should be when only one grid is on the page. However, when I add a second grid, inline editing is enabled on rows where it should not be.
function grid6_load()
{
var grid = $('#list6');
var rowids = grid.getDataIDs();
var columnModels = grid.getGridParam().colModel;
// check each visible row
for (var i = 0; i < rowids.length; i++)
{
var rowid = rowids[i];
var data = grid.getRowData(rowid);
if (data.account == 'read_only') // view only
{
jQuery("tr#"+rowid).addClass("not-editable-row");
jQuery("tr#"+rowid+" td[aria-describedby$='_act']").html("-");
}
}
}
If i understand issue correctly, you need to prefix tr#id selector with #grid_id to uniquely identify grid.
e.g.
jQuery("#list6 tr#"+rowid+" td[aria-describedby$='_act']").html("-");