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?
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.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?