Unplanned
Last Updated: 12 Aug 2022 07:59 by ADMIN
Korstiaan
Created on: 11 Aug 2022 08:43
Category: DropDownList
Type: Feature Request
1
Prov access to the field in the grouping template

Greetings

Related to this issue, when you use multiple groups, then the header of the first subgroup doesn't get rendered. This cascades down all sublevels.
Example: https://codesandbox.io/s/strange-benji-3m9d19?file=/src/app/app.component.ts 

As I was typing this up I also noticed that we don't have access to the field we're grouping on in the kendoDropDownListGroupTemplate (not exclusive to the DropDownList, all dropdown types have this problem).

It'd be great and a very minor change to enable this.
It's currently like this (line 103 inside common/list.component.ts in the source code): 

[templateContext]="{
    templateRef: groupTemplate.templateRef,
    $implicit: dataItem.value
}"
This could be something like this:
[templateContext]="{
    templateRef: groupTemplate.templateRef,
    $implicit: dataItem.value,
    field: dataItem.field
}"

Regards

1 comment
ADMIN
Martin Bechev
Posted on: 12 Aug 2022 07:59

Hi Korstiaan,

Thank you for the provided suggestion and feedback.

I will convert this ticket to a feature request in our Feedback Portal. We monitor the customer demand periodically and will consider providing such an enhancement in the future, based on the interest.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.