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

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

1 Answer 48 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sudeshna
Top achievements
Rank 1
Sudeshna asked on 19 Sep 2013, 10:19 AM
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.

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 24 Sep 2013, 07:17 AM
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.
Tags
Editor
Asked by
Sudeshna
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or