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.
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
Hi ,
i undestand this example. but this s for two level Hierarch. but i have n -level Hierarch. e.g.
Org1-->ORG3-->org4-->org5...so on.
ORg2-->org6-->org7
ORg9
in case when i do not know the bindingdepth from the begining how will i do it. cuase all them example requrires, defining column layout or all level upfront.
thank you