onCellSelect

QuestionsonCellSelect
josep asked 10 years ago

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
Abu Ghufran answered 10 years ago

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

15 + 19 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?