Oct 23, 2013, 6:16 PM
javascript load() renders component script instead of chart
I have the following Razor code:
I use a similar javascript function:
The script does not get render correctly. Is there another command I need to run after the load command. I tried
Html.X().Container()
.ID("ViewContainer2")
.Loader(Html.X().ComponentLoader()
.Url(Url.Action("Portlet"))
.Mode(LoadMode.Script)
.Params(new { containerid = "ViewContainer2" })
)
It renders the following chart:I use a similar javascript function:
Ext.get('ViewContainer2').load({
url: '/Dashboard/Portlet/',
scripts: true,
params: {
containerid: "ViewContainer2"
}
});
I get the following result:The script does not get render correctly. Is there another command I need to run after the load command. I tried
Ext.get('ViewContainer2').show();
but did not work.