how to get a value of a (hidden) column, from the selected row. that is, the cell value needs to be from the cell identied by colName, and the selected row (not using multi select). From the API i see the method getGridParam(“selrow”) for reading the row, may be able to combine with other methods.. but, any convenient method available? a code snippet would save lot of time… \
thanks.
how to get a value of a (hidden) column, from the selected row. that
Share
You should use
getCellfunction to read the value from the cell identified by row id. So if you need a data from the column ‘MyColName’ of selected row you can do this with the following code:If you need read full data of a row you can use
getRowDatainstead ofgetCell. More about methods supported by jqGrid you can read in the documentation (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods).