This is a migrated thread and some comments may be shown as answers.

Allow to customize processing logic for kendoGridGroupBinding

2 Answers 246 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ultimeta
Top achievements
Rank 1
Ultimeta asked on 03 Dec 2018, 08:39 AM

In grid without virtual scroll there is a possibility to customize grouping/sorting/paging logic. Because kendo-grid receives processed data as input, on the opposite kendoGridGroupBinding receives unprocessed data and performs processing itself.

Is there a valida way to customize grouping logic for kendoGridGroupBinding, if no is there plans on such feature?

2 Answers, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 05 Dec 2018, 06:40 AM
Hello Anatoly,

There is no straight-forward way to customize the internal logic of the kendoGridGroupBinding directive, as it is rather complex and involves processing the whole data set and retrieving and rendering the correct "page" or portion of items when there is one or multiple levels of grouping, a group is collapsed/expanded, etc.

The kendoGridGroupBinding directive is meant to provide a simple approach for using the virtual scrolling and grouping functionalities together. Of course, the developer is free to use their own custom logic for processing the data in accordance with the current Grid state - all data operations-related events like pageChange, filterChange, groupChange, filterChange (and the cumulative dataStateChange) are triggered like in any regular Grid, and the developer is free to provide any custom logic for processing the data and update the collection the Grid is bound to via its data option.

Examples of such Grids (with or without virtual scrolling used) are available in various documentation online demos, e.g.:

https://www.telerik.com/kendo-angular-ui/components/grid/scroll-modes/#toc-virtual-scrolling

https://www.telerik.com/kendo-angular-ui/components/grid/filtering/#toc-filter-row ...etc.

You can also download the whole original source code of the Grid package, as described in the following section of our documentation:

https://www.telerik.com/kendo-angular-ui/components/installation/source-code/

... and inspect how exactly the kendoGridGroupBinding directive is implemented, so that you can provide your own directive or custom logic the to process the Grid data.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ultimeta
Top achievements
Rank 1
answered on 05 Dec 2018, 02:37 PM
Thanks
Tags
General Discussions
Asked by
Ultimeta
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Ultimeta
Top achievements
Rank 1
Share this question
or