Mar 28, 2011, 4:15 PM
[CLOSED] ICONs are not rendering in popup window
Hi,
In a button click event I have configured and showing the window. In window configuration I have added icons to the buttons, but those icons are not showing up. Can you please let me know anything else I need to add or modify.
The Main page code is
In a button click event I have configured and showing the window. In window configuration I have added icons to the buttons, but those icons are not showing up. Can you please let me know anything else I need to add or modify.
The Main page code is
<%@ Page Language="VB" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Public Sub ClickRefresh(ByVal sender As Object, ByVal e As Ext.Net.DirectEventArgs)
'Me.pnlMain.LoadContent("TestPage.aspx")
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
var renderWindow = function (windowConfig) {
var win = Ext.getCmp(windowConfig.id);
if (!win) {
new Ext.Window(windowConfig);
} else {
win.show();
}
}
var ShowReqCondsWindow = function (statusval, keystr, statusid) {
//alert("Here");
var windowConfig = {
id: "WindowReqCond",
title: "Required Popup",
height: 540,
width: 720,
hidden: false,
buttonAlign: "center",
closeAction: "close",
iconCls: "icon-pagewhitecode",
buttons: [
{
id: "btnSave",
text: "Save and Close",
iconCls: "icon-disk"
},
{
id: "btnClose",
text: "Close",
iconCls: "icon-delete",
listeners:
{
click:
{
fn: function (el, e) {
parent.Ext.getCmp('WindowReqCond').close();
}
}
}
}
]
}
renderWindow(windowConfig);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Viewport ID="Viewport1" runat="server" Layout="border">
<Items>
<ext:Panel ID="pnlMain" runat="server" Padding="5" Region="Center">
<Items>
</Items>
<Buttons>
<ext:Button ID="btnPopup" runat="server" Text="Show Window">
<Listeners>
<Click Handler="ShowReqCondsWindow()" />
</Listeners>
</ext:Button>
<ext:Button ID="btnRefresh" Text="Refresh" runat="server">
<DirectEvents>
<Click OnEvent="ClickRefresh">
<EventMask Msg="Refreshing..." ShowMask="true" />
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:Panel>
</Items>
</ext:Viewport>
</form>
</body>
</html>
Last edited by Daniil; Apr 01, 2011 at 1:15 PM.
Reason: [CLOSED]