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

Change headerTemplate after init.

3 Answers 121 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Wayne Hiller asked on 29 Aug 2016, 06:04 PM
I can change the template & headerTemplate after init via the setOptions but only the template will take effect. The headerTemplate does not change when calling setOptions({ headerTemplate: "something"}). Is there any way to force it to update?

3 Answers, 1 is accepted

Sort by
0
Eduardo Serra
Telerik team
answered on 30 Aug 2016, 03:18 PM
Hello Wayne,

The setOptions method changes the headerTemplate property in the object (we can see it when we log it in the console for example) but doesn't reflect the change as it does with the template property. setOptions doesn't appear in the DropDownList API documentation; it would be under methods if it was supported.

I would encourage you to think of an approach that lets you set the headerTemplate before drawing the DropDownList and participating in our Feedback and Feature Request Portal.

I hope this helps!

Regards,
Eduardo Serra
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
answered on 30 Aug 2016, 03:27 PM
I did notice that setOptions was not in the DropDownList API docs. I suppose I could create two DropDownLists and hide/show the correct one as needed.
0
Eduardo Serra
Telerik team
answered on 31 Aug 2016, 03:40 PM
Hello Wayne,

Having different DropDowns with different headerTemplates is definitely a valid approach. Feel free to contact us again in the future through a new ticket if there's anything else we could help you with.

Thank you.

Regards,
Eduardo Serra
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
DropDownList
Asked by
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Answers by
Eduardo Serra
Telerik team
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Share this question
or