Hi,
I am working on Asp.Net MVC 3 application. In that I have below pages:
_Layout.cshtml (Master page)
Chart.cshtml (page derived from _Layout.cshtml)
In chart,cshtml I am using infragistic Chart.
As per documentation I am putting required declarations in master page so that it automatically comes with every page:
_Layout.cshtml
<script type="text/javascript" src="@Url.Content("~/Scripts/Ig/infragistics.loader.js")"></script>
@(Html.Infragistics().Loader().ScriptPath(Url.Content("~/Scripts/Ig")).CssPath(Url.Content("~/Content/Ig")).Render())
When I run the application my charts are not getting rendered neither am i getting any error.
BUT when I move the Loader Helper to the child page (Chart.cshtml) charts show up.
I can't understand the behavior where. Any help would be appreciated.
Thanks Martin, for the clarification. This issue was driving me nuts.
This is the expected behavior and is described in Known Issues and Limitations 2012 Volume 1 under MVC Loader does not function properly in an MVC Razor layout view.
Infragistics loader loads resources automatically only when it is used in the same view with the controls which need to be included in the page.
Best regards,Martin Pavlov
Infragistics, Inc.
Any update on this ???????