trigger subgrid

Questionstrigger subgrid
Stephen Hartigan asked 4 years ago

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
Abu Ghufran answered 4 years ago

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

17 + 18 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!