Mar 02, 2017, 12:43 PM
[CLOSED] popup window control from shared layout page
can anybody guide me on how to open window popup partial view on a menu item click from layout page?
Window Control like this:
Thanks
Window Control like this:
X.Window().ID("TestPopUp").Width(500).Height(500).Modal(true).Items(....)
I was able to do it by calling@HTML.Partial("TestPopUp")
and thenX.Menu().Items(
X.MenuItem().Text("Test View").Listeners(l => l.Click.Handler = "App.TestPopUp.show()")
)
from my layout page, but I have many partial pop up window controls in my app, and I don't want to Render all of them across entire website. So, I was just wondering if there is any other approach of achieving this from my layout page?Thanks
Last edited by fabricio.murta; Mar 03, 2017 at 6:37 PM.