6 Answers, 1 is accepted
0
Hi Andres,
Yes it is possible. The convention used to transform JavaScript configuration options into data attributes is explained in this help article:
I hope the information will help.
Regards,
Alexander Valchev
Telerik
Yes it is possible. The convention used to transform JavaScript configuration options into data attributes is explained in this help article:
I hope the information will help.
Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Andres
Top achievements
Rank 1
answered on 17 Dec 2013, 11:43 PM
I tried with data-show-work-hours but it didn't work ... :-( do you have some advice?
0
Hi Andres,
I believe that the problem comes from the fact that the showWorkHours option does not have a default value. The developer can set configuration options via data attributes only if they have a default value in the widget's prototype.
Please try to add the following line:
The code should be executed before kendo.bind is called. It is best to put it right after Kendo JavaScript file.
Regards,
Alexander Valchev
Telerik
I believe that the problem comes from the fact that the showWorkHours option does not have a default value. The developer can set configuration options via data attributes only if they have a default value in the widget's prototype.
Please try to add the following line:
kendo.ui.Scheduler.fn.options.showWorkHours =
false
;
The code should be executed before kendo.bind is called. It is best to put it right after Kendo JavaScript file.
Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Darryl
Top achievements
Rank 1
answered on 19 May 2014, 12:22 PM
This doesn't work for me. I'm using v2014.1.318
Is there a better way now?
Is there a better way now?
0
Hi Darryl,
I prepared a small example. Could you please check it and let me know what I am missing?
Regards,
Alexander Valchev
Telerik
I prepared a small example. Could you please check it and let me know what I am missing?
Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Darryl
Top achievements
Rank 1
answered on 22 May 2014, 05:04 AM
Hi Alexander,
Not sure what was going on but appears to be working ok now.
Thanks.
Not sure what was going on but appears to be working ok now.
Thanks.