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

mvvm custom event template

1 Answer 46 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 24 Sep 2015, 12:27 AM

Hello,

 I am trying to bind a custom event template to the scheduler. The way i assume to do it is described below. However, none of the events seem to be displaying in this format. Please advise.

 

<div id="scheduler"
       data-role="scheduler"
       data-eventTemplate= "$('#event-template').html()"></div>
 
<script id="event-template" type="text/x-kendo-template">
    <div class="event">
        <div class="contain">
            <span class="name">#= name #</span><br/>
            <span class="number">#= phone #</span>
        </div>
    </div>
</script>

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 25 Sep 2015, 08:34 AM
Hello George,

Please check the example below how to set the event template correctly as an option of the view:

<div  data-role="scheduler"
    data-views="[{type: 'day', eventTemplate: $('#event-template').html()}]"

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
Tony
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or