trigger subgrid

Questionstrigger subgrid
Stephen Hartigan asked 9 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 9 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

8 + 0 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?