Hello,
I am using phpgrid loading data from a array.
I have 2 phpgrid on the same page and I want to use the function
var opts = {
'onCellSelect': function (rowid,icol,cellcontent) {
var info='Row:'+rowid+'nCol:'+icol+'nContent:'+cellcontent;
}
}
How do I can differentiate between the two?
Another question is
How do I can change the value of a cell in one of them?
Regards
1 Answers
If your grid ids are list1 and list2, You can use
var opts_list1 = {};
var opts_list2 = {};
$('#list1').jqGrid('setCell',id,'price','test');
Refer jqgrid docs for JS api reference: http://www.trirand.com/jqgridwiki/doku.php
Your Answer