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
180
Hierarchy of three levels using manual on demand
posted

Hi,

I can do manual on demand for second level by implementing RowIslandsPopulating event of grid and in RowIslandsPopulating method I am adding ContainerGrid for child grid.

Now I need to implement RowIslandsPopulating event for child ContainerGrid also but it looks like ContainerGrid is not support RowIslandsPopulating event.

Please let me know how to achieve this functionality with using hierarchy data source or any other data source. On demand data is coming from database so no fixed structure (column) for child grid.

Thanks.

Parents
No Data
Reply
  • 49378
    Suggested Answer
    posted

    Hi omidixit,

    It has been some time since your post, however in case you still need assistance I would be glad to help.

    In this scenario you need to make the rows of the child container grid expandable so as for the RowIslandsPopulating method to be fired upon childgrid row expansion. This can be achieved by looping through the child container grid's rows (after it is data bound) and setting the IsEmptyParent property to true. For instance:


        ContainerGrid child = new ContainerGrid();
        e.Row.RowIslands.Add(child);
        child.DataSourceID = SqlDataSource2.ID;
        child.DataBind();

       
    for (int i = 0; i < child.Rows.Count; i++)
        {
            
    //make the rows in the child grid expandable
            
    child.Rows[i].IsEmptyParent = true;
        }

    Please feel free to contact me if you have any questions.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://es.infragistics.com/support

Children