How could I generate a jquery grid with grouping on multiple columns?
The below is the code I am using and I need to group the grid with multiple column names. Currently it is being grouped with a single column.
The select menu for the columns names are coming in drop down menu.
This is the jQuery code for grouping the grid using the selected menu item:
<script>
jQuery("#chngroup").change(function()
{
var vl = jQuery(this).val();
if(vl)
{
if(vl == "clear")
jQuery("#<?php echo $grid_id ?>").jqGrid('groupingRemove',true);
else
jQuery("#<?php echo $grid_id ?>").jqGrid('groupingGroupBy',vl);
}
});
</script>