Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#dynamicGrouping").change(function() {
- var value = $(this).val();
- if(value) {
- if(value == '') {
- $('#grid').jqGrid('groupingRemove', true);
- } else {
- $('#grid').jqGrid('setGridParam', { grouping:true });
- $('#grid').jqGrid('groupingGroupBy', value);
- $('#grid').trigger('reloadGrid');
- }
- }
- });
- jQuery(function() {
- $('#grid').jqGrid({
- .....
- .....
- grouping: false,
- groupingView : {
- groupField : ['field_name'],
- groupColumnShow : [true],
- groupText : ['<b>{0} - {1} Item(s)</b>'],
- groupCollapse : false,
- groupOrder: ['asc'],
- groupDataSorted : true
- },
- .......
- .......
- });
- });
Add Comment
Please, Sign In to add comment