Hello,
I want to disable the grouping in Grid's PreRender event but have trouble doing so. I believe this event is too late to disable grouping.
What other possibilities do I have?
Currently I'm doing this in Grid's PreRender event:
But grouping is still possible. I don't want to hide the grouing header (which would work).
Thanks!
I want to disable the grouping in Grid's PreRender event but have trouble doing so. I believe this event is too late to disable grouping.
What other possibilities do I have?
Currently I'm doing this in Grid's PreRender event:
bool
enableGrouping = settings.EnableGrouping && GroupingEnabled;
grid.GroupingEnabled = settings.EnableGrouping;
grid.ShowGroupPanel = settings.EnableGrouping;
grid.ClientSettings.AllowDragToGroup = enableGrouping;
grid.GroupingSettings.ShowUnGroupButton = enableGrouping;
But grouping is still possible. I don't want to hide the grouing header (which would work).
Thanks!