set currentTimeMarker by data-current-time-marker

2 posts, 1 answers
  1. Boris
    Boris avatar
    18 posts
    Member since:
    Aug 2015

    Posted 08 Jun 2016 Link to this post


    I was going through the Scheduler MVVM demo:

    I want to set currentTimeMarker to false, in order to hide the time marker. I want to do it in html by means of data- attribute. So I add this to the div element for the scheduler:


    I re-run the demo, but the time marker is still there...

    Thank you for the answers,


  2. Answer
    Vladimir Iliev
    Vladimir Iliev avatar
    2190 posts

    Posted 09 Jun 2016 Link to this post

    Hello Boris,

    The reason for current behavior is that the "currentTimeMarker" is actually an option of the views - that why you should set it inside the "data-views" option as follows:

    <div data-role="scheduler"
         data-views="[{type: 'day', currentTimeMarker: false}]"

    Vladimir Iliev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top