Hello,
Is it possible to skip a group template if there's no value in a group field?
For example, I want to group on category and sub-category and I want to display data in the following way:
- Category: 'Automative'
--Sub-category: 'Cars'
----Ferrari
----Lamborghini
--Sub-category: 'Tyres'
---Bridgestone
----Michelin
-Category: 'Bikes'
-- Peugeot
-- Trek
The products in the 'Bikes' category don't have a sub-category - they belong straight to the top category. Unfortunately, if I do grouping on both 'category' and 'sub-category', Kendo UI Grid will add an empty grouping template for the missing sub-category.
Is it somehow possible to skip a group template, if there's no value in a group column?
I've tried using a function for `groupHeaderTemplate`, but unfortunately, it can only put an empty values in a template, it cannot skip the whole group template.
Thanks,
Mike
Is it possible to skip a group template if there's no value in a group field?
For example, I want to group on category and sub-category and I want to display data in the following way:
- Category: 'Automative'
--Sub-category: 'Cars'
----Ferrari
----Lamborghini
--Sub-category: 'Tyres'
---Bridgestone
----Michelin
-Category: 'Bikes'
-- Peugeot
-- Trek
The products in the 'Bikes' category don't have a sub-category - they belong straight to the top category. Unfortunately, if I do grouping on both 'category' and 'sub-category', Kendo UI Grid will add an empty grouping template for the missing sub-category.
Is it somehow possible to skip a group template, if there's no value in a group column?
I've tried using a function for `groupHeaderTemplate`, but unfortunately, it can only put an empty values in a template, it cannot skip the whole group template.
Thanks,
Mike