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