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

Angular Celndar - set dates and month template

1 Answer 40 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 23 Jan 2017, 04:15 AM

 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.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 Jan 2017, 07:20 AM
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.
Tags
Calendar
Asked by
Nick
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or