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

Access context in HeaderTemplate

1 Answer 282 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Ciprian Daniel asked on 29 Sep 2020, 09:12 AM

Hello,

Is there any way to access the context in the HeaderTemplate as I want to set some dynamic content based on some values from the model?

 

Thank you.

Best regards,

Cipri

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 29 Sep 2020, 09:14 AM

Hello Cipri,

The header template is not related to any model, only the rows in the body of the table are. If you need data, you can obtain it directly from the Data collection of the grid.

 

Regards,
Marin Bratanov
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/.

Tags
TreeList
Asked by
Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or