And then load the data via grid.parse(data,‘jsarray’) and the grid would know that column 0 is id and then selectRowById() would work using the data in column0.
Unfortunately we’re not planning to include such feature in the future versions of dhtmlxgrid but such customization may be created.
Please, open ticket with the request at support.dhtmlx.com
I just created this prototype to help solve my issue:
dhtmlXGridObject.prototype.selectByIdCol0 = function(col0Id, fireOnSelect, preserve, show){
if (fireOnSelect == undefined) fireOnSelect = false;
if (preserve == undefined) preserve = false;
if (show == undefined) show = true;
var id
for (id=0; id < this.getRowsNum(); id++){
if (this.cells(id+1,0).getValue() == col0Id) {
this.selectRow(id, fireOnSelect, preserve, show);
break;
}
}
}
With a few prototypes, I think my headaches go away. I have not tested this when the grid is being filtered. Pretty sure dhtmlx is robust to handle it.