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
Add igGrid to Index page
posted

Hi everyone,

Please i want to add igGrid to my Index(cshtml) page (I work with Asp.Net MVC).

How can i do it?  even if i'm following this example step by step but something is rong !!!

https://www.igniteui.com/help/iggrid-overview

thanks for any helpful informations.

Parents
No Data
Reply
  • 485
    Offline posted

    Hello Na Oumi,

     

    Thank you for posting in our forum.

     

    This help topic provides a detailed explanation on how to use the Ignite UI MVC Helpers and configure the igGrid in an MVC application:

    https://www.igniteui.com/help/iggrid-developing-asp-net-mvc-applications-with-iggrid

     

    There are two possible syntax variations that could be used when declaring the igGrid in an MVC scenario:

    1. A GridModel instance in the Controller of your application could define all the grid initialization options, and then be passed to the Helper;
    2. The Chaining syntax could be used in case you want to declare the igGrid in the Index.cshtml file.

     

    Both of these approaches would result in the same JavaScript output at the end.

     

    Here is a code sample that declares a simple igGrid in the View by using the Chaining syntax:

     

     GridSampleMVC.zip

     

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

Children