Skip to content
Advertisement

How can a button/html be placed in the root column of a multi-column header in kendo ui treelist?

In the kendo ui treelist the headerTemplate works for a multi-column only in the lowest column of the hierarchy. Not in the root column.

Sample:

JavaScript

Sample Link

How can a button/html be placed in the root column of a multi-column header?

Advertisement

Answer

I’ve checked the console and it has a runtime error when that headerTemplate was uncommented:

Uncaught TypeError: i.headerTemplate is not a function

So i suposed it was expecting a template function, like:

JavaScript

And it works, hence you can use html in that template:

JavaScript

Updated Dojo

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement