-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDefault.aspx
57 lines (55 loc) · 2.03 KB
/
Default.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="DevExpress.Web.v15.1, Version=15.1.15.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
Namespace="DevExpress.Web" TagPrefix="dx" %>
<!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></title>
</head>
<body>
<script type="text/javascript">
var iframeLoaded = false;
function OnPopUp(s, e) {
loadingPanel.Show();
}
function OnSelectedIndexChanged(s, e) {
if (clientPopup.IsVisible())
SetTbText();
else clientPopup.Show();
}
function OnInit(s, e) {
var iframe = s.GetContentIFrame();
iframe.onload = function () {
iframeLoaded = true;
SetTbText();
}
}
function OnShown(s, e) {
if (iframeLoaded == true)
SetTbText();
}
function SetTbText() {
var contentIFrameWindow = clientPopup.GetContentIFrameWindow();
var contentTextBox = contentIFrameWindow.clientTb;
if (contentTextBox)
contentTextBox.SetText(clientCmb.GetText());
loadingPanel.Hide();
}
</script>
<form id="form1" runat="server">
<dx:ASPxLoadingPanel ID="ASPxLoadingPanel1" ClientInstanceName="loadingPanel" Modal="true" runat="server"></dx:ASPxLoadingPanel>
<dx:ASPxComboBox ID="cmb" runat="server" ClientInstanceName="clientCmb">
<Items>
<dx:ListEditItem Text="DevExpress Home" Value="Home"></dx:ListEditItem>
<dx:ListEditItem Text="DevExpress Support" Value="SC"></dx:ListEditItem>
<dx:ListEditItem Text="DevExpress Search" Value="Search"></dx:ListEditItem>
</Items>
<ClientSideEvents SelectedIndexChanged="OnSelectedIndexChanged" />
</dx:ASPxComboBox>
<dx:ASPxPopupControl ID="popup" runat="server" ContentUrl="~/ContentPageWithTextBox.aspx"
Top="100" ClientInstanceName="clientPopup" CloseAction="CloseButton">
<ClientSideEvents Shown="OnShown" Init="OnInit" PopUp="OnPopUp"/>
</dx:ASPxPopupControl>
</form>
</body>
</html>