As I saw in jqgrid wiki 'groupingGroupBy' has two parameters: 'name' and 'options'. What is 'option' and can i change groupingView parameters like groupSummery?
If you examine the source code of groupingGroupBy
method you will find the only line where the options
parameter will be used:
$t.p.groupingView = $.extend($t.p.groupingView, options || {});
So one can use options
parameter to change properties of the groupingView
parameter of jqGrid. The documentation of groupingGroupBy
method gives you the same information.
Perform a grouping by given name. A set of additional options can be set with the option parameter. The groupingView object is extended with the options parameter.
It's important to understand that jQuery.extend function merge the contents of existing properties of groupingView
parameter with options
. So if you changes for example groupField
property and you specified groupText
properties before then both the properties will be in the new settings. Don't forget to change all properties which depends from each other.