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
1740
WebHierarchicalDataGrid samples using datasets/datatables from code-behind
posted

How many levels of nested data could be displayed using WebHierarchicalDataGrid? We need to display 4 levels. Does this control support?

All samples provided are using WebHierarchicalDataSource control for the source. How does WHDG work using WHDS? Does it get data for all childrens during the initial page load and then filters at the client-side using data relations?

Are there any samples that shows how to achieve the same hierarchy using datasets/datatables in code-behind?

I would appreciate your response on this!

Parents
  • 6748
    Verified Answer
    posted
    Hello Ram,
     
    I think that the automatic load on demand would fit your 4 levels scenario. In order to implemented it, you should just set the InitialDataBindDepth to 0. Then you can bind your grid either at design time or at runtime, by providing the datasource every time in page load. The first time the grid will load just the parent band, and when a row is expanded the proper level will be loaded from the datasource.
    But in case you still want to implement the manual load on demand option, I have created a sample project that shows the proper way to achieve it.
     
    There, you can see how the arrow is shown (with the help of IsEmptyParent property). My sample is with a webhierarchicaldatagrid that has 3 levels, but it is not hard to add a fourth level to it.
    Hope this helps.
     
    Regards,
    Lyuba Petrova
    Developer Support Engineer
    Infragistics
     
Reply Children
No Data