Home › Forums › Guriddo jqGrid JS › Help › Clicking row goes to an URL
Is this possible?
Cheers
Danny
Use “onSelectRow” event :
onSelectRow: function(rowid) {
document.location='newPage.php?var='+rowid;
Thats great. Is there anyway of using a value in a column (i have an ID in column 1) instead of the rowid?
Thanks
Yes :
var myVar= mygrid.getCell(rowid,cellname);
“cellname” can be a number (the cell number) or the index name as specified in colModel.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS