hai,
I have a problem with rad editor for asp.net ajax when viewing in mozilla..
I am using the rad editor inside a web user control and using it in another web user control. the code is given below.
setup.ascx:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
</asp:ScriptManagerProxy>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<telerik:RadEditor ID="Editor" runat="server" StripFormattingOptions="All" EnableAjaxSkinRendering="true"
ToolsFile="~/Telerik/Editor/Tools.xml" ToolbarMode="Default" Width="98%">
<CssFiles>
<telerik:EditorCssFile Value="~/App_Themes/SNAMATEST/TelerikEditor.css" />
</CssFiles>
</telerik:RadEditor>
</ContentTemplate>
</asp:UpdatePanel>.
viewer.ascx
<asp:Panel ID="pnlEditor" runat="server" Style="display: none;" CssClass="glSetUpPanel">
<div class="glItem">
<gl:GlossarySetup ID="ucGlossarySet" IsCancelButtonVisible="false" IsSaveButtonVisible="false"
runat="server" />
<div class="rlMiddle" style="text-align: right;">
<asp:Button ID="btnGlossarySave" runat="server" Text="Save" CssClass="rlButton" OnClick="btnGlossarySave_Click" />
<asp:LinkButton ID="lnkGlossaryCancel" runat="server" CssClass="rlLinkBold" OnClientClick="return TogglePanel(); return false;">Cancel</asp:LinkButton>
<%-- <asp:LinkButton ID="lnkGlossaryCancel" PostBackUrl='<%# HigherLogic.Glossary.Business.Services.SettingsService.ViewGlossaryPage + "?GlossaryKey=" + GlossaryKey %>'
CausesValidation="false" runat="server">Cancel</asp:LinkButton>--%>
</div>
</div>
</asp:Panel>
when the page loads first, the editorpanel visibility is false. when we click on one edit link, the editor panel will be visible and can edit using the editor. after saving the data the editorpanel gets invisible. if we again click on the edit, the editorpanel will be visible but we cannot edit anythingin the editor and will not load the old data.
when searching for a solution i got one link which i think will be the answer and added that code in the page load of the setup.ascx,
protected void Page_Load(object sender, EventArgs e)
{
HtmlGenericControl link = new HtmlGenericControl("LINK");
link.Attributes.Add("rel", "stylesheet");
link.Attributes.Add("type", "text/css");
link.Attributes.Add("href", HigherLogic.Business.Utilities.ResolveUrlFully("~/App_Themes/SNAMATEST/TelerikEditor.css"));
link.Attributes.Add("href", HigherLogic.Business.Utilities.ResolveUrlFully("~/App_Themes/SNAMATEST/Editor.css"));
Controls.Add(link);
}.
But not resolved the issue. when i added the this code inside the pageload of viewer control, i got this error,
Server Error in '/snama' Application.
Can u please help me to get out of this problem. the issue is only comes in mozilla, all other browser has no issue. i am using the telerik dll version 2008.1.515.35.
can anyone help me?
I have a problem with rad editor for asp.net ajax when viewing in mozilla..
I am using the rad editor inside a web user control and using it in another web user control. the code is given below.
setup.ascx:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
</asp:ScriptManagerProxy>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<telerik:RadEditor ID="Editor" runat="server" StripFormattingOptions="All" EnableAjaxSkinRendering="true"
ToolsFile="~/Telerik/Editor/Tools.xml" ToolbarMode="Default" Width="98%">
<CssFiles>
<telerik:EditorCssFile Value="~/App_Themes/SNAMATEST/TelerikEditor.css" />
</CssFiles>
</telerik:RadEditor>
</ContentTemplate>
</asp:UpdatePanel>.
viewer.ascx
<asp:Panel ID="pnlEditor" runat="server" Style="display: none;" CssClass="glSetUpPanel">
<div class="glItem">
<gl:GlossarySetup ID="ucGlossarySet" IsCancelButtonVisible="false" IsSaveButtonVisible="false"
runat="server" />
<div class="rlMiddle" style="text-align: right;">
<asp:Button ID="btnGlossarySave" runat="server" Text="Save" CssClass="rlButton" OnClick="btnGlossarySave_Click" />
<asp:LinkButton ID="lnkGlossaryCancel" runat="server" CssClass="rlLinkBold" OnClientClick="return TogglePanel(); return false;">Cancel</asp:LinkButton>
<%-- <asp:LinkButton ID="lnkGlossaryCancel" PostBackUrl='<%# HigherLogic.Glossary.Business.Services.SettingsService.ViewGlossaryPage + "?GlossaryKey=" + GlossaryKey %>'
CausesValidation="false" runat="server">Cancel</asp:LinkButton>--%>
</div>
</div>
</asp:Panel>
when the page loads first, the editorpanel visibility is false. when we click on one edit link, the editor panel will be visible and can edit using the editor. after saving the data the editorpanel gets invisible. if we again click on the edit, the editorpanel will be visible but we cannot edit anythingin the editor and will not load the old data.
when searching for a solution i got one link which i think will be the answer and added that code in the page load of the setup.ascx,
protected void Page_Load(object sender, EventArgs e)
{
HtmlGenericControl link = new HtmlGenericControl("LINK");
link.Attributes.Add("rel", "stylesheet");
link.Attributes.Add("type", "text/css");
link.Attributes.Add("href", HigherLogic.Business.Utilities.ResolveUrlFully("~/App_Themes/SNAMATEST/TelerikEditor.css"));
link.Attributes.Add("href", HigherLogic.Business.Utilities.ResolveUrlFully("~/App_Themes/SNAMATEST/Editor.css"));
Controls.Add(link);
}.
But not resolved the issue. when i added the this code inside the pageload of viewer control, i got this error,
Server Error in '/snama' Application.
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Can u please help me to get out of this problem. the issue is only comes in mozilla, all other browser has no issue. i am using the telerik dll version 2008.1.515.35.
can anyone help me?