Aug 16, 2016, 1:28 PM
[CLOSED] Panel - ComponentLoader - frame is loading TWICE - Strange behaviour / BUG?
I have a docked panel with an iframe using ComponentLoader. The strange thing is that when the panel is collapsed/closed/hided the content is loadad again, and not only once but twice!!
So starting the example below, closing the east-panel and reopen it causes the content to be loaded 5 times in total.
I think that the content shouldn't even reload on any of these events: (collapsing/hinding/closing/reopening/showing etc).
The right behavior should be that the panel should not unload or load the content more than once, at least if .CloseAction(CloseAction.Hide) is set.
I am using the Chrome debugger -> Network.
For the example I am loading a blank page, but this could be any URL.
So starting the example below, closing the east-panel and reopen it causes the content to be loaded 5 times in total.
I think that the content shouldn't even reload on any of these events: (collapsing/hinding/closing/reopening/showing etc).
The right behavior should be that the panel should not unload or load the content more than once, at least if .CloseAction(CloseAction.Hide) is set.
I am using the Chrome debugger -> Network.
For the example I am loading a blank page, but this could be any URL.
@{
var x = Html.X();
}
@(
x.Panel()
.Title("Border layout")
.Height(600)
.Width(900)
.Layout(LayoutType.Border)
.Items(
x.Panel()
.Region(Region.Center)
.Title("Center")
,
x.Panel()
.Region(Region.East)
.Width(450)
.Split(true)
.Loader(x.ComponentLoader()
.Mode(LoadMode.Frame)
.Url("/home/blank")
)
)
)
And the controller code: public class HomeController : Controller
{
public ActionResult Blank()
{
return Content("");
}
}
Last edited by fabricio.murta; Sep 02, 2016 at 8:07 PM.