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
multi level Hierarchical Grid Load On Demand with ASP.NET MVC ignite
posted

Hi,

i have organization structure that needs to be display in hirachical gird. i do not know the depth. i have seem the example where three level hierarchi is define at code level. is there a way i can do this at runtime.

Parents
No Data
Reply
  • 29417
    Offline posted

    Hello cmm,

     

    Thank you for posting in our forum.

     

    Do you mean creating the grid model in the controller?

    Generally you can create the grid model by creating a new GridModel instance and define the properties and setting you want for example:

    GridModel grid = new GridModel();

    grid.LoadOnDemand = true;

    And then you pass that model to the view: @Html.Infragistics().Grid(Model)

     

    To have load on demand in MVC you need to specify a method that returns the required data for each level.There’s more information on how you could do this here: http://help.infragistics.com/Help/Doc/jQuery/2012.2/CLR4.0/HTML/igHierarchicalGrid_Load_on_Demand.html

    Specifically the section “Loading data on demand in MVC”.

     

    Let me know if you have any questions or if I’ve misunderstood your question.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    www.infragistics.com/support

Children