Set Options for Specific Views

3 posts, 0 answers
  1. Derek
    Derek avatar
    6 posts
    Member since:
    Nov 2015

    Posted 09 May 2016 Link to this post


    I currently have a scheduler that contains three custom timeline views, each with a different number of days, major tick, and minor tick count. I want to dynamically change the tick values, but only for one view at a time. I am aware of the scheduler.setOptions method, however that will apply the update across all views. When I try scheduler.view().setOptions, the changes made will undo when I refresh the view. Is there any way to change the options for a custom view? Thanks!

  2. Vladimir Iliev
    Vladimir Iliev avatar
    2190 posts

    Posted 10 May 2016 Link to this post

    Hello Derek,

    You can modify the options of given view after the Scheduler initialization by accessing the "views" collection:

    var scheduler = $("#scheduler").getKendoScheduler();
    //modify the desired view options:
    scheduler.views["workWeek"].minorTickCount = 4;
    //refresh the view:

    Vladimir Iliev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Derek
    Derek avatar
    6 posts
    Member since:
    Nov 2015

    Posted 10 May 2016 in reply to Vladimir Iliev Link to this post

    This worked perfectly. Thanks!
Back to Top