kendo scheduler MVVM eventTemplate Not work

1 Answer 105 Views
MVVM Scheduler
vahid
Top achievements
Rank 2
Iron
Iron
Iron
vahid asked on 11 Jul 2022, 03:04 PM | edited on 11 Jul 2022, 04:12 PM

hi

i need use MVVM  (eventTemplate)  but not work sample

thank you

1 Answer, 1 is accepted

Sort by
1
Accepted
Lyuboslav
Telerik team
answered on 14 Jul 2022, 10:51 AM

Hello Vahid,

I would suggest trying the solution in this Dojo. Here I used the "data-views" property to declare "eventTemplate" instead of "data-event-template":

<div data-role="scheduler"
               data-views="[{ 
                           type: 'day',
                           eventTemplate: '<div class=\'movie-template\'>TEST:<span>#: title #</span>asd<span>#: description #</span></div>'
                           }]"
               data-bind="source: tasks"
               style="width: 600px; height: 700px"></div>
        </div>

In this snippet below, I declared to have the "Title" word before the title of the event . 

'<div class=\'movie-template\'>Title:<span>#: title #</span>asd<span>#: description #</span></div>

I hope the provided suggetsion will be helpful for resolving the issue.

Regards,
Lyuboslav
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Tags
MVVM Scheduler
Asked by
vahid
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Lyuboslav
Telerik team
Share this question
or