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

Adding a Custom Editor using HtmlHelper

1 Answer 70 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 25 Nov 2015, 05:55 PM

Hello,

 

I currently have a Scheduler that is coded using the HtmlHelper @(Html.Kendo().Scheduler<Model>()) rather than using javascript. I have created a custom editor for the scheduler and would like to use it, but I cannot figure out how. I know with javascript it can simply be done with the format:

 

editable: {
                //set the template
                template: kendo.template($('#EditorID').html())
            },

 

However, with the HtmlHelper format,  the ".Editable" property only seems to allow a true or false value. Is there a setting I'm missing, or will I have to rewrite everything in javascript?

 

Thanks so much!

1 Answer, 1 is accepted

Sort by
0
Derek
Top achievements
Rank 1
answered on 25 Nov 2015, 06:18 PM

Already found the solution. For any with the same problem, see below:

 

.Editable(e => e
                .Template("#= getTaskEditor() #")
            )

Tags
Scheduler
Asked by
Derek
Top achievements
Rank 1
Answers by
Derek
Top achievements
Rank 1
Share this question
or