set currentTimeMarker by data-current-time-marker

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

    Posted 08 Jun Link to this post

    Hello,

    I was going through the Scheduler MVVM demo:

    http://demos.telerik.com/kendo-ui/scheduler/mvvm

    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:

    data-current-time-marker="false"

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

    Thank you for the answers,

    Boris

  2. Answer
    Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 09 Jun 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}]"

    Regards,
    Vladimir Iliev
    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