Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
MVC Prolem
posted

Hello,

 

I am new to MVC/jQuery so there may be something that I am doing wrong. I have attached a very simple project that attempts to create igGrid using a GridModel. There aren't any errors, but the grid is not visible. If I use $.ig.loader to generate the grid, the grid shows up just fine. Note that when applying the first approach, generated script does not produce a call to $.ig.loader. Please advise.

 

Thanks,

Daniel

Sample.zip
Parents
No Data
Reply
  • 2735
    Verified Answer
    posted

    Hi, Daniel,

    In MVC, you have to initialize the loader with the Loader MVC Wrapper:

        <!--NetAdvantage for jQuery resources loader-->
        <script src="js/infragistics.loader.js" type="text/javascript"></script>
        @( Html.Infragistics().Loader()
                    .ScriptPath(Url.Content("js/"))
                    .CssPath(Url.Content("css/"))
                    .Theme("metro")
            .Render()
        )
    
    <div>
        @Html.Infragistics().Grid("grid2", Model.TestModel)
    </div>
    
    
    More information about loader you can read here.
    Regards,
    Stanimir

Children