Welcome Guest Search | Active Topics | Sign In | Register

Editor Modal PopUp Options
vu.anh.nguyen
Posted: Friday, June 19, 2009 12:55:47 PM
Rank: Member
Groups: Member

Joined: 8/30/2007
Posts: 11
I've encountered an issue with putting an editor inside a panel to use as a modalpopup using the ajaxtookkit modalpopupextender. The popup extender uses a hidden panel as the targetcontrolid so that I can update controls within the modalpopup before its displayed. I use a link button to initialize the modal. When using firefox the linkbutton click event doesnt fire, but in IE7 it works fine. I'm using the lastest firefox version 3.0.11 and the new 2009 web controls suite. Here's my code:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Modal_Editor_test.aspx.vb"
Inherits="Modal_Editor_test" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="scriptman" runat="Server">
</asp:ScriptManager>
<asp:LinkButton ID="testbttn" runat="server" Text="Display Modal" />
<asp:Panel ID="hiddenPanel" runat="server">
</asp:Panel>
<asp:Panel ID="testmodal" runat="server" Style="display: none; width: 600px">
<eo:Editor ID="testEditor" runat="server">
</eo:Editor>
<asp:Button ID="OK_MODALBTTN" runat="server" Text="Ok" />
&nbsp;&nbsp;<asp:Button ID="CANCEL_MODAL" runat="server" Text="Cancel" />
</asp:Panel>
<cc1:ModalPopupExtender runat="server" ID="test_MODALPOPUP" TargetControlID="hiddenPanel"
PopupControlID="testmodal" OkControlID="OK_MODALBTTN" CancelControlID="CANCEL_MODAL"
DropShadow="false">
</cc1:ModalPopupExtender>
</form>
</body>
</html>

Code Behind:


Partial Class Modal_Editor_test
Inherits System.Web.UI.Page

Protected Sub displayModal(ByVal sender As Object, ByVal e As System.EventArgs) Handles testbttn.Click
test_MODALPOPUP.Show()
End Sub
End Class
Code: Visual Basic.NET
Code: Visual Basic.NET
vu.anh.nguyen
Posted: Friday, June 19, 2009 1:05:28 PM
Rank: Member
Groups: Member

Joined: 8/30/2007
Posts: 11
I would also like to add that if there are other linkbuttons in the page they also do not fire the click event. If I remove the editor, then all link buttons fire click events in firefox.
eo_support
Posted: Friday, June 19, 2009 4:06:53 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Try to set the Editor's Visible to false in your .aspx:

Code: HTML/ASPX
<eo:Editor Visible="False" ....>
....
</eo:Editor>


Then change it to true when you display the Modal popup:

Code: Visual Basic.NET
testEditor.Visible = True
test_MODALPOPUP.Show()


That should take care of the issue.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.