Trying to set tools using Html.Kendo().EditorFor

2 posts, 0 answers
  1. Richard Lewis
    Richard Lewis avatar
    7 posts
    Member since:
    Nov 2009

    Posted 16 Jul 2012 Link to this post

    I am trying to set the tools using EditorFor to create a text editor that shows with no tools 
    as the default view but cannot get the syntax correct.

     => m.ChildViewModel.Text).HtmlAttributes(new { Width = "100%", tools = "[]" })

    I would also like to show a limited number of tools using the same method for another editor
    on the same page.

    Please show me the correct syntax for configuring tools using the 'Html.Kendo().EditorFor'

  2. Karthik
    Karthik avatar
    1 posts
    Member since:
    Feb 2016

    Posted 09 Mar 2016 in reply to Richard Lewis Link to this post

    I know this post is too old. Just to help others, here is a solution 

                @(Html.Kendo().EditorFor(model => model.CustomerFeedback.Description)
                       .HtmlAttributes(new { style = "height:100px; width: 450px" })
                       .Tools(tools => tools

Back to Top