Hello. It´s possible to add a button in the view form in order to print the details of a record?. Thanks.
1 Answers
It's not supported in library, but can be done with custom code.
You can refer demos/editing/dialog-layout.php
// Edit button in view dialog
$opt["view_options"]["beforeShowForm"] = 'function (form) { … }';
In onclick handler, you can open a new php page in which you pass selected row id and use custom code to print.
to get selected row id (list1 is grid id)
var rowid = jQuery('#list1').jqGrid('getGridParam','selrow');
Your Answer