Html.Telerik().Editor() enabling disabling issue

2 posts, 0 answers
  1. Sudeshna
    Sudeshna avatar
    1 posts
    Member since:
    Sep 2013

    Posted 19 Sep 2013 Link to this post

    Hi,

    I have used multiple telerik editors in a table row and on click of a radio button I am required to disable the editor and enable it on the click of another radio button. 
    For disabling the editor I have tried various methodologies like adding "disabled" and "readonly" attributes(both attributes together and also singularly) but this has not helped me to disable it completely. This does disable the header section of the editor but not its content area which I mainly need.
     
    <% Html.Telerik().Editor()
            .Name("txtArea")
            .Tools(tools => tools
                .Clear()
                .Bold().Italic().Underline()
                .JustifyLeft().JustifyCenter().JustifyRight()
                .InsertUnorderedList().InsertOrderedList()
                .Indent().Outdent()
     
              ).HtmlAttributes(new
              {
                  style = "display:inline;height:50;width:500;",
                  @readonly="readonly",
                  @disabled="disabled"
     
              })
             .ClientEvents(events => events.OnChange("change"))
            .Value(HttpUtility.HtmlDecode(EnglishWording))
            .Render();
                        %>


    However on partial postback of the table(html table containing the editor) rendering the editor again results in the disabling of the editor(its content area section) and I am again not able to return to its enabled state - by removing any readonly or disabled attributes. Kindly let me know what would be the correct way of disabling and enabling the editor.
  2. Slav
    Admin
    Slav avatar
    1359 posts

    Posted 24 Sep 2013 Link to this post

    Hello Sudeshna,

    It appears that the editor you are using is part of the Telerik MVC Extensions, which are no longer supported (see this page for reference). In case you have inquiries about Kendo UI Complete for ASP.NET MVC, I would suggest posting them in the pertinent Kendo UI forums.

    Regards,
    Slav
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top