TIWCGJQGridGroupingViewDnD.OnDropColGroupFn Property

Use this function to replace the default behavior of grouping. The function receive two parameters:

  1. GroupedColsList - the names list of grouped columns.
  2. ColName - the name of current dropped column.

Example of usage:

  • Same as default behavior
    var
    GroupColList: string;
    begin
    GroupColList:= AParams.Values['GroupedColsList'];
    IWCGJQGrid1.JQGridOptions.GroupingGroupBy(GroupColList);
    end;
  • Set the GroupText:
  • var
    GroupColList: string;
    GroupOpts: ISuperObject;
    begin
    GroupColList:= AParams.Values['GroupedColsList'];
    GroupOpts:= SO();
    GroupOpts.O['groupText']:= SA(['<b>Grouped: "{0}" - {1} item(s)</b>']);
    IWCGJQGrid1.JQGridOptions.GroupingGroupBy(GroupColList,GroupOpts);
    end;
Namespace: IWCGJQGrid
published
 property OnDropColGroupFn: TIWCGJSonFunc index 04 read GetFuncValue write SetFuncValue stored IsFuncStored;

Property Value