Oct 21, 2013, 9:34 PM
How to reload a portlet after changing a componenloader
I have a portlet which a want to reload using javascript.
This is the portlet:
App.West1.load(); but it does not work. Is there a way to force the loader to load again?
This is the portlet:
portlets.Add(
new Portlet
{
ID = "West1",
Loader = Html.X().ComponentLoader()
.Url(Url.Action("Portlet"))
.Mode(LoadMode.Script)
.Params(new { containerid = "West1" })
}
);
I call a javascript function in which I change the url of the componentloader:var changeChart = function () {
App.West1.loader.url = "/Dashboard/HistoryPortlet/";
// App.West1.reload();
};
I want to change the line App.West1.reload(); to something that works. I tried App.West1.load(); but it does not work. Is there a way to force the loader to load again?