PDA

View Full Version : [CLOSED] Examples Window - Open in front



registrator
Aug 23, 2014, 12:13 PM
When opening a window in
http://mvc.ext.net/#/Window_Basic/Load_External_Website/

Is there a way of opening it in front of the whole page? Not being contained within the specific example tab?

Thank you

Daniil
Aug 25, 2014, 10:57 AM
Hi @registrator,

Examples open in iframes. The only way is to create a Window in a parent page. It might be done from a child (iframe) page.

Here is an example.
http://forums.ext.net/showthread.php?9935&p=165931&viewfull=1#post165931

registrator
Sep 09, 2014, 6:54 AM
Hi Daniil

This works, thank you. But how can I open a specific window? With an ID? Like in the example that I am referring to.

Cheers

Daniil
Sep 09, 2014, 12:18 PM
I don't quite understand the question. Please elaborate.

registrator
Sep 10, 2014, 11:46 AM
Hi Daniil

I have a window already defined in the page as (for example):



@(X.Window()
.ID("Window1")
.Title("Ext.NET")
.Width(1000)
.Height(500)
.Modal(true)
.AutoRender(false)
.Collapsible(true)
.Maximizable(true)
.Hidden(true)
.Loader(X.ComponentLoader()
.Url("http://www.ext.net")
.Mode(LoadMode.Frame)
.LoadMask(lm => lm.ShowMask = true)
)
)


And I just want this particular window to be opened in parent.

Can it be a property on this window like .RenderTo(parent) ?

Hope you know what I mean...

Thank you

Daniil
Sep 10, 2014, 2:30 PM
I think the answer is no way.

What about to define that Window on the parent view?

registrator
Sep 11, 2014, 7:01 AM
These windows are meant to be a part of the view where they are defined. Just want them to open over everything.
I could define a "container" window on the parent and then load a content to it dynamically. A possible solution, isn't it?

Daniil
Sep 11, 2014, 7:38 AM
These windows are meant to be a part of the view where they are defined. Just want them to open over everything.

Yes, I understand. Just that is a restriction of iframes. By the way, do you really need to use iframes? I would avoid if possible. Well, they are really good for some scenarios, but it is easy to overuse.


I could define a "container" window on the parent and then load a content to it dynamically.

Probably.