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
15
Stuck at mvc application data binding using model view.
posted

Hello Team,

I am trying to check whether we can use your tool for my project requirement and I am new to bootstrap and MVC. 

I have implemented the code by using instructions shown in the page https://www.igniteui.com/help/iggrid-binding-to-webapiBut I am not sure where I am missing the code as I am unable to see the data on the screen. There is no data displaying in the grid at all.

My requirement is to use a grid with Grouping, Multi column and customized editing of cells. Can you please help me to fix out on how to display the data into the grid. It would be helpful if I can have a working sample with MVC and entity framework. 

Please find the screen shots of my code. I am attaching the controller, Model and View of my project.

NOTE: When I check the model in the cshtml file using debugger I am able to see the data in the result view but the grid is not displaying.

Thanks

Nand     an. 

Parents
  • 485
    Offline posted

    Hello Nandan,

     

    Thank you for posting in our forum.

     

    You don't need the igLoader if you are loading the combined infragistics.core.js and infragistics.lob.js files, so you could remove the reference to it at line 7 in Index.cshtml and everything should work fine.

     

    I noticed that the CDN links you are using are for Ignite UI v17.1, so you could replace them with these newer ones:

     

    CSS links:

    <link href="https://www.igniteui.com/igniteui/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
    <link href="https://www.igniteui.com/igniteui/css/structure/infragistics.css" rel="stylesheet" />
    

     

    Script links:

    <script src="http://cdn-na.infragistics.com/igniteui/2017.2/latest/js/infragistics.core.js"></script>
    <script src="http://cdn-na.infragistics.com/igniteui/2017.2/latest/js/infragistics.lob.js"></script> 

     

    In case you still want to use the loader instead, please note that you have to change the ScriptPath and CssPath to match your file locations - that is the most likely reason you are getting the error message in the browser console.

     

    If you need any additional assistance, feel free to contact me.

     

Reply Children