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

Complete template example for editor

3 Answers 167 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 04 Dec 2013, 04:06 AM
I am trying to customise the editor template for the scheduler and have found examples to include the recurrence editor but none for the timezone editor. Also using the examples for the recurrence doesn't appear to hide recurrence options when editing a single event within the series. It seems to do a simple customisation requires a lot of work to restore the existing functionality, especially when looking at the source it builds the template on the fly anyway.

Is it possible to provide a full HTML template example that acts identical to the original template, or provide a way to add a simple fields to the default template?

3 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 05 Dec 2013, 12:21 PM
Hi Andrew,

Please find the answers of your questions below:
  1. You can check this example in our CodeLibrary which contains example of implementing "timezone" editor in custom editor template. 
  2. You can hide the recurrence editor in the editor template based on wherever current event "recurrenceId" field is not null. Please check the example below:  
    #if(recurrenceId !== null){#
    <div class="k-edit-label">
        <label for="recurrenceRule">Recurrence Rule</label>
    </div>
    <div data-container-for="recurrenceRule" class="k-edit-field">
        <div data-bind="value:recurrenceRule" id="recurrenceRule" name="recurrenceRule" data-role="recurrenceeditor"></div>
    </div>
    #}#


Kind Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sean
Top achievements
Rank 1
answered on 13 Mar 2014, 01:42 PM
Is it possible to do the same thing with the mobilerecurrenceeditor?  I tried setting the data-role to this, and it puts the "Never" button in place to take you to the editor, but when I click on it I get a "Unable to get property 'view' of undefined or null reference" error.
0
Vladimir Iliev
Telerik team
answered on 17 Mar 2014, 08:23 AM
Hi Andrew,

Please note that the mobile recurrenceEditor requires mobile view in order to works as expected - that why in case you are using the regular scheduler I would suggest to use the regular recurrence editor instead. If you need to load the adaptive version of the scheduler you can initialize mobile view and the scheduler with "mobile" option set (as demonstrated in this example). Than you can use the mobile recurrenceEditor in the custom editor template. 

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