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

set currentTimeMarker by data-current-time-marker

1 Answer 138 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 08 Jun 2016, 01:16 PM

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

1 Answer, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 09 Jun 2016, 07:03 AM
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!
 
Tags
Scheduler
Asked by
Boris
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or