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

Task color after adding resource

1 Answer 49 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ran
Top achievements
Rank 1
Ran asked on 13 Dec 2015, 10:19 AM

Hi,

Here is my code: 

http://dojo.telerik.com/@idoglik6/ocavO

I added button on top "ADD ROUTE".

This button simulates adding a route to the $scope.route which serve the resources.

After adding a new route, I tried to create a new task using the new route (Route 3).

Unfortunately, the task color remains the default color instead of the new route color.

Any suggestions?

Thanks,

Ran

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Topalov
Telerik team
answered on 15 Dec 2015, 03:46 PM
Hello Ran,

Modifying the Kendo UI Scheduler resources after the widget's initialization is not supported out-of-the-box. However, there are a couple of ways to achieve the required behavior:

1) Destroy the widget and re-initialize it with the new resource settings (this is the recommended approach)

2) Examine the following forum thread and example

http://www.telerik.com/forums/modifying-resources-datasource-dynamically

http://dojo.telerik.com/egoq/11

I hope this helps.

Regards,
Dimiter Topalov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Scheduler
Asked by
Ran
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or