Hi,
Can I trigger the subgrid panel to open when the user edits inline (either by clicking on the pen icon or double clicking on field)
Thanks.
1 Answers
Following option setting should open subgrid on dblclick and pencil icon click. (list1 is grid id)
$opt["ondblClickRow"] = "function(id){ $('#list1').expandSubGridRow(id); }";
$opt["loadComplete"] = "function(id){ $('.icon-pencil').click(function(){ var r = jQuery(this).jqGrid('getGridParam','selrow'); $('#list1').expandSubGridRow(r);}); }";
$grid->set_options($opt);
Your Answer