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

Problem with master page

4 Answers 235 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Nidhi
Top achievements
Rank 1
Nidhi asked on 24 Jan 2011, 02:05 PM
Hi,
I have created a web sites in which I have created a master page and created a web content form which I have connected it to that master page and in that content form I have placed a rad editor. The rad editor is not working on that page and if I created a simple web page and not connected it with master page then its working fine. So please give me some suggestion to fix this problem.
Code on aspx page is

<%@ Page Title="" Language="C#" MasterPageFile="~/DefaultMaster.Master" AutoEventWireup="true" CodeBehind="AddNewsletter.aspx.cs" Inherits="Aciron.Touch.AddNewsletter" Theme="Default" MaintainScrollPositionOnPostback="true"%>

<%@ Register src="UserControls/Header.ascx" tagname="Header" tagprefix="uc1" %>

<%@ Register src="UserControls/SubHeader.ascx" tagname="SubHeader" tagprefix="uc2" %>

<%@ Register src="UserControls/Footer.ascx" tagname="Footer" tagprefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<uc1:Header ID="Header1" runat="server" />

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">

<uc2:SubHeader ID="SubHeader1" runat="server" />

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">

<div>

<telerik:RadEditor ID="txtMessage" CssClass="Normal12px" runat="server" ContentFilters="MakeUrlsAbsolute" OnClientCommandExecuting="OnClientCommandExecuting" OnClientLoad="OnClientLoad" >

<CssClasses>

<telerik:EditorCssClass Name="Clear Class" Value="" />

</CssClasses>

<Content></Content>

<ImageManager UploadPaths="~/Images" DeletePaths="~/Images" ViewPaths="~/Images" />

<TemplateManager UploadPaths="~/Templates" DeletePaths="~/Templates" ViewPaths="~/Templates" />

</telerik:RadEditor>

</div>

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" runat="server">

<uc3:Footer ID="Footer1" runat="server" />

</asp:Content>
I am attaching a screenshot that shows the tooltip on rad editor.Thanks.

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Jan 2011, 05:57 PM
Hello Nidhi,

RadEditor works fine in masterpage scenario.
I saw that you have attached a functions to the OnClientLoad and OnClientCommandExecuting properties but you did not provided their code. So I am unable to fully replicate your scenario. That is why can you please isolate the problem in a simple working project and send it for examination by opening a support ticket? I will examine it and once I am able to reproduce the error I will provide a solution.

Best wishes,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Nidhi
Top achievements
Rank 1
answered on 28 Jan 2011, 01:18 PM
Now my problem is fixed. I found that style applied on body in stylesheet of master page is creating problem with Rad editor.The style of body tag i.e
body
{

}
so can you tell me why this is happening? I have used 2 stylesheets one for master page and other for all pages and in master page style sheet I have written
body
{
background-color:Olive;
}
and in other stylesheet I have written nothing and its like
body
{

}
So is there any problem if I am writing like this?
0
Nidhi
Top achievements
Rank 1
answered on 28 Jan 2011, 01:20 PM
Right now I have write inline style in body on master page and removed the body from other stylesheet so if I want to write the style in stylesheet rad editor does not work.Thanks
0
Rumen
Telerik team
answered on 31 Jan 2011, 11:33 AM
Hello Nidhi,

I was unable to reproduce the problem using the newly provided information, however I have a suggestion to set the CssFiles property of RadEditor to point to some css file, e.g.

<telerik:radeditor runat="server" ID="RadEditor1">
   <CssFiles>
       <telerik:EditorCssFile Value="~/ExternalCssFile.css" />
   </CssFiles>
</telerik:radeditor>


Therefore the editor will not pick up the styles from the master page and the problem should not occur.

Best wishes,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Nidhi
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Nidhi
Top achievements
Rank 1
Share this question
or