Jan 07, 2016, 7:52 PM
How to move an EXT.NET window to a tab on the browser ?
On our MVC EXT.NET code, when the user click on a button, it currently pops a window.
We would like the user to be able to move that window to another tab on the browser, or if that's not possible we would like to show that window on another tab on the browser to begin with.
How can we do that ? Should we not use "window" ?
I am not able to do that with the ext.net window above. But, if the PDF file is open in 1 of the browser tab, I can drag it to an email (and it becomes an attachment in the email).
So, if I can't show the window in another browser tab, is there a way to drag the PDF file shown on the window to an email as attachment ?
Thank you.
We would like the user to be able to move that window to another tab on the browser, or if that's not possible we would like to show that window on another tab on the browser to begin with.
How can we do that ? Should we not use "window" ?
Window win = new Window
{
ID = "Windows1",
Title = "myTitle",
Icon = Ext.Net.Icon.PageWhiteAcrobat,
Height = 600,
Width = 1024,
BodyPadding = 2,
Modal = true,
Layout = "Fit",
CloseAction = CloseAction.Destroy,
BodyStyle = "background-color:white;",
Maximizable = true,
Loader = new ComponentLoader()
{
Url = Url.Action("myAction", "myRoute"),
Mode = LoadMode.Frame,
DisableCaching = true,
ShowWarningOnFailure = true,
LoadMask = { ShowMask = true, Msg = "Reading document..." }
}
};
win.Loader.Params.Add(new Parameter() { Name = "id", Value = id.ToString(), Mode = ParameterMode.Value });
win.Render(RenderMode.Auto);
The reason I want the window to show on the browser tab is because the window shows a PDF file, and I would like to be able to drag the PDF file to an email (as an attachment). I am not able to do that with the ext.net window above. But, if the PDF file is open in 1 of the browser tab, I can drag it to an email (and it becomes an attachment in the email).
So, if I can't show the window in another browser tab, is there a way to drag the PDF file shown on the window to an email as attachment ?
Thank you.
Last edited by faujong; Jan 08, 2016 at 1:38 PM.