cxjs icon indicating copy to clipboard operation
cxjs copied to clipboard

Implement groupingParams and onCreateGroupings

Open mstijak opened this issue 7 years ago • 1 comments

This should work similar to how filterParams and onCreateFilter work on the grid.

mstijak avatar Jun 07 '18 08:06 mstijak

The feature is implemented and works like this:

<Grid     
     groupingParams:bind="$page.grouping"
     onCreateGrouping={(groupingParams) => [
         {key: {}, showFooter: true},
         ...(groupingParams || []).map(x => x.id)
     ]}

Is there a better name for the function from onCreateGrouping?

mstijak avatar Jun 07 '18 18:06 mstijak

onCreateGrouping has been renamed to onGetGrouping. Here's an example: https://docs.cxjs.io/examples/grid/dynamic-grouping

nikolatechie avatar Feb 02 '24 11:02 nikolatechie