Angular Celndar - set dates and month template

2 posts, 0 answers
  1. Nick
    Nick avatar
    1 posts
    Member since:
    Jul 2012

    Posted 22 Jan Link to this post

     Hi,

    I'm having trouble replicating the demo for the calendar in angular - Customizing Templates http://demos.telerik.com/kendo-ui/calendar/template 

    I want to be able to pass it a list of dates from a scope variable and have the dates shown on the calendar with a different style from a template.

    I would also like to be able to update the list of dates after the widget has been initialized. Is this possible with the calendar and angular?

    I've tried setting the 'month' and 'dates' attributes in markup to my scope variable but it's not working.

     

     

     

  2. Stefan
    Admin
    Stefan avatar
    833 posts

    Posted 25 Jan Link to this post

    Hello Nick,

    I made the same example in AngularJS:

    http://dojo.telerik.com/OmUge

    As for updating the list of values, this is currently not supported. I can suggest destroying the widget first and then re-creating it with the new values:

    http://docs.telerik.com/kendo-ui/api/javascript/ui/calendar#methods-destroy

    I hope this is helpful.

    Regards,
    Stefan
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top