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.
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.
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.