Mar 11, 2011, 8:25 AM
[CLOSED] Create multiple windows..
Hi,
I want to be able to create multiple windows on my web app - if you right click on a tree node and choose "details" I want to open up the details window for that node. If you then do the same for another node it needs to open up without replacing the current one.
Currently I have a window defined in my page like this:
-- EDIT --
When I tried the JS route to see if it would work, it doeesn't render my page inside the window. I can see the page request to the server, but the response is never rendered inside this window.. I tried substituting with a simple "test.htm" page, and that does render inside the window...
Js looks like this:
I want to be able to create multiple windows on my web app - if you right click on a tree node and choose "details" I want to open up the details window for that node. If you then do the same for another node it needs to open up without replacing the current one.
Currently I have a window defined in my page like this:
<ext:Window
ID="RackViewWindow" runat="server" Icon="ApplicationFormEdit" Width="350" Height="500"
Title="Rack View" Hidden="true" Modal="false">
<AutoLoad
Url="/Rack/id/"
Mode="IFrame"
TriggerEvent="show"
ReloadOnEvent="true" NoCache="true">
<Params>
<ext:Parameter Name="id" Value="" Mode="Value" />
</Params>
</AutoLoad>
<Listeners>
<Hide Handler="" />
</Listeners>
</ext:Window>
Is it possible to open multiple instances of this window, or do I need to create an "Ext.Window" in javascript for each node?-- EDIT --
When I tried the JS route to see if it would work, it doeesn't render my page inside the window. I can see the page request to the server, but the response is never rendered inside this window.. I tried substituting with a simple "test.htm" page, and that does render inside the window...
Js looks like this:
toolwindow = new Ext.Window({
modal: false,
maximizable: true,
minimizable:true,
title: TreePanel1.menuNode.text,
resizable: true,
autoLoad:{url:'/Rack/' + TreePanel1.menuNode.id.substr(4)},
width:350,
height:500
,listeners:{show:function() {
this.loadMask = new Ext.LoadMask(this.body, {
msg:'Loading. Please wait...'
});
}}
});
toolwindow.show();
Thanks
Last edited by Daniil; Mar 11, 2011 at 11:50 AM.
Reason: [CLOSED]