Change headerTemplate after init.

4 posts, 0 answers
  1. Wayne Hiller
    Wayne Hiller avatar
    37 posts
    Member since:
    Sep 2005

    Posted 29 Aug Link to this post

    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?
  2. Eduardo Serra
    Admin
    Eduardo Serra avatar
    50 posts

    Posted 30 Aug Link to this post

    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.
     
  3. Kendo UI is VS 2017 Ready
  4. Wayne Hiller
    Wayne Hiller avatar
    37 posts
    Member since:
    Sep 2005

    Posted 30 Aug in reply to Eduardo Serra Link to this post

    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.
  5. Eduardo Serra
    Admin
    Eduardo Serra avatar
    50 posts

    Posted 31 Aug Link to this post

    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.
     
Back to Top
Kendo UI is VS 2017 Ready