Hi,
I have added custom button on the form for printing.
When the button is clicked, I need value of col2 from any row in the grid to be passed as parameter to another PHP page. How can i achieve this?
1 Answers
Here is some sample code, you can place in button click function.
// get selected row id
var rowid = jQuery(this).jqGrid('getGridParam','selrow');
// fetch col2 value of that column
var val = jQuery('#list1').jqGrid('getCell', rowid, 'col2');
// call jscode to pass. e.g.
window.open("export.php?col2="+val);
Your Answer