Saroj13
asked on
How to make the AjaxControlToolkit HTmlEditorExtendor ReadOnly asp.net and C#?
<script language="javascript" type="text/javascript">
$(window).bind("load", function () {
document.getElementById('g vFeedback$ ctl02$txtD etails').R eadOnly = true;
});
</script>
<style type="text/css">
.ajax__html_editor_extende r_buttonco ntainer
{
display:none;
}
.containerClass .ajax__html_editor_extende r_containe r
{
width: 100% !important;/*important is really important at here*/
}
</style>
<asp:TextBox runat="server" ID="txtDetails" TextMode="MultiLine" CssClass="TextBoxEditor" Text='FeedDetails' Width="100%" Height="110px"/><br />
<ajaxToolkit:HtmlEditorExt ender ID="htmlEditorExtendertxtD etails" EnableSanitization="false" DisplaySourceTab="false"
TargetControlID="txtDetail s" runat="server" > </ajaxToolkit:HtmlEditorEx tender>
$(window).bind("load", function () {
document.getElementById('g
});
</script>
<style type="text/css">
.ajax__html_editor_extende
{
display:none;
}
.containerClass .ajax__html_editor_extende
{
width: 100% !important;/*important is really important at here*/
}
</style>
<asp:TextBox runat="server" ID="txtDetails" TextMode="MultiLine" CssClass="TextBoxEditor" Text='FeedDetails' Width="100%" Height="110px"/><br />
<ajaxToolkit:HtmlEditorExt
TargetControlID="txtDetail
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you could also, hide the editor and show a div with the editor content. so that user can only see it, can't edit it. later you can show the editor base on some condition.