Adding a Custom Editor using HtmlHelper

2 posts, 0 answers
  1. Derek
    Derek avatar
    6 posts
    Member since:
    Nov 2015

    Posted 25 Nov 2015 Link to this post

    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!

  2. Derek
    Derek avatar
    6 posts
    Member since:
    Nov 2015

    Posted 25 Nov 2015 in reply to Derek Link to this post

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

     

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

  3. Kendo UI is VS 2017 Ready
Back to Top