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

Tools not firiing when RadEditor inside RadWindow

6 Answers 128 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Hector
Top achievements
Rank 1
Hector asked on 04 Jun 2010, 07:41 PM
I have a custom control that has an editor inside a RadWindow.  When I enable it to edit the content, the button controls are not working, they highlight and tooltip displays on hover but the clicking is not firing the command.  Here is my code:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebContent.ascx.cs" 
    Inherits="MSD_web.WebContent" %> 
 
<script type="text/javascript"
    //<![CDATA[
    function OnClientLoad(editor) {
    }
 
    function openContentEditorWin(winID) {
        var oWnd = $find(winID);
        oWnd.show();
        var editor = $find("<%=RadEditor2.ClientID%>"); //get a reference to RadEditor's client object
    }
    
    //]]> 
</script> 
 
<asp:PlaceHolder ID="EditButtonsPlaceHodler" runat="server" Visible="false"
     
    <button onclick="openContentEditorWin('<%=RadWindow1.ClientID%>');return false;" "> 
        Edit Content</button><br /> 
</asp:PlaceHolder> 
<asp:Literal ID="HTMLContentHolder" runat="server" > 
</asp:Literal> 
<telerik:RadWindowManager Behaviors="Close, Move, Resize,Maximize" ID="RadWindowManager" 
    DestroyOnClose="true" runat="server"
    <Windows> 
        <telerik:RadWindow ID="RadWindow1" VisibleOnPageLoad="false" Title="Content Editor" 
             runat="server" Width="900" Height="700" > 
            <ContentTemplate> 
                 
                    <asp:Button ID="btnSave" runat="server" Text="Save" Enabled="True" OnClick="btnSave_Click" /> 
                     
                    <div style="text-align: left; display: block"
                    <telerik:RadEditor ID="RadEditor2" runat="server" Skin="Simple" Width="100%" Height="650" 
                        Enabled="True" OnClientLoad="OnClientLoad"
                    </telerik:RadEditor> 
                    </div> 
               
            </ContentTemplate> 
        </telerik:RadWindow> 
    </Windows> 
</telerik:RadWindowManager> 
 

6 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 07 Jun 2010, 04:20 PM
Hi Hector,

We are aware of this problem and working on fixing it. At present as a workaround I suggest you to execute the RadEditor's client-side method onParentNodeChanged() when the RadWindow is opened, e.g:
function openContentEditorWin(winID)
{
    var oWnd = $find(winID);
    oWnd.show();
    var editor = $find("<%=RadEditor2.ClientID%>"); //get a reference to RadEditor's client object
    editor.onParentNodeChanged();
}


Regards,
Dobromir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Hector
Top achievements
Rank 1
answered on 07 Jun 2010, 04:34 PM
I tried it and it didn't work.  Same behavior.
0
Rumen Jekov
Top achievements
Rank 1
answered on 07 Jun 2010, 11:37 PM
Hi Hector,

Could you please make sure that you use the latest version of Telerik.Web.UI.dll  Q1 SP2 2010 in your project? If you still experience this problem with the latest build, even when firing the onParentNodeChanged method, then please specify the browser under which the problem persists and its version.

Best regards,
Rumen
0
Hector
Top achievements
Rank 1
answered on 07 Jun 2010, 11:47 PM
I am using version 2010.1.519.35 on Firefox
0
Dobromir
Telerik team
answered on 08 Jun 2010, 09:31 AM
Hi Hector,

Could you please open a support ticket and provide a sample project reproducing the problem so we can investigate it further?

Best wishes,
Dobromir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Hector
Top achievements
Rank 1
answered on 08 Jun 2010, 02:08 PM
This will have to wait until I return in 3 weeks.  I'll open a ticket then.  Thank you.
Tags
Editor
Asked by
Hector
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Hector
Top achievements
Rank 1
Rumen Jekov
Top achievements
Rank 1
Share this question
or