ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: omerix on May 07, 2019, 03:25:36 pm
-
Hello,
I have presented the features on this page to the users in a separate pop-up window.
I wanted to add this to "group panel".
https://paramquery.com/pro/demos/grid_parts
Add Javascript Code
$("#grid_groupModel").change(function (evt) {
grid.option("groupModel",$(this).prop("checked"));
grid.refresh();
}).attr("checked", grid.option("groupModel.on"));
Add Html Code
<label><input type="checkbox" id="grid_groupModel">
Grup Panel </label>
<br>
Console Error:
Uncaught use groupOption() to set groupModel options.
Why is the error caused? Can you help me?
-
Which version of grid are you using?
Grouping can be turned on/off with help of groupModel.on
Ex: please check toggle button in this example: https://paramquery.com/pro/demos/group_rows
-
Changed the javascript code as in the example. Thanks.
$("#grid_groupModel").change(function (evt) {
grid.Group().option({on: $(this).prop("checked")});
grid.refresh();
}).attr("checked", grid.option("groupModel.on"));