Oct 30, 2012, 1:33 PM
Open Window with URL from grid panel
How do I open a window from the a grid panel with the content based on the selected row?
I can open a window from the grid panel when I select a row. However, whenever I change the URL in code-behind based on the selected row, the window does not show. To simplify, the initial configuration shows CNN.COM, but when I want to show EXT.NET after selecting a row, the window does not show. Ultimately, the window's content will be driven by the selected row, but one step at a time.....
Code-behind:
Manni
I can open a window from the grid panel when I select a row. However, whenever I change the URL in code-behind based on the selected row, the window does not show. To simplify, the initial configuration shows CNN.COM, but when I want to show EXT.NET after selecting a row, the window does not show. Ultimately, the window's content will be driven by the selected row, but one step at a time.....
<ext:Window
ID="WindowViewDocument" runat="server" Height="200" Width="200"
Modal = "true" AutoRender = "false" Collapsible = "true"
Maximizable = "true" Hidden = "true">
<Loader ID="LoaderViewDocument"
runat="server"
Url="http://www.cnn.com"
Mode="Frame"
TriggerEvent="show"
ReloadOnEvent="true"
DisableCaching="true">
<LoadMask ShowMask="true" />
</Loader>
</ext:Window>
Code-behind:
protected void RowSelect(object sender, Ext.Net.DirectEventArgs e)
{
string DocumentID = e.ExtraParams["DocumentID"];
docID = int.Parse(DocumentID);
// This is what I ultimately want to show, but one step at a time.....
// this.WindowViewDocument.Loader.Url = "http://localhost:49953/views/employee/documentview.aspx?DocumentId=" + DocumentID ;
this.WindowViewDocument.Loader.Url = "http://www.ext.net";
this.WindowViewDocument.Reload();
this.WindowViewDocument.Show();
}
Any help is greatly appreciated!Manni