Task color after adding resource

2 posts, 1 answers
  1. Ran
    Ran avatar
    29 posts
    Member since:
    Apr 2015

    Posted 13 Dec 2015 Link to this post

    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

  2. Answer
    Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    349 posts

    Posted 15 Dec 2015 Link to this post

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