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
1965
child behaviours in manual on demand
posted

How can I enable child behaviours in manual on demand for large datasets. For example though i Set enableinheritence to true for paging, i can see the different pages on child grid, but clicking on it does not take me to that page

Parents
No Data
Reply
  • 49378
    posted

    Hello dev_here,

    Thank you for posting in the community.

    I am attaching a small sample demonstrating this scneario. When assigning the grid's child datasource manuall through the DataSource property. the RowIslandDataBinding event should be handled in order to rebind the child container grids on each postback for paging to operate properly. Note that when setting the datasource through the DataSourceID property, this should not be necessary.

    Code Snippet
    1. protected void WebHierarchicalDataGrid1_RowIslandsPopulating(object sender, Infragistics.Web.UI.GridControls.ContainerRowCancelEventArgs e)
    2. {
    3.     e.Cancel = true;
    4.     ContainerGrid grid = new ContainerGrid();
    5.  
    6.     e.Row.RowIslands.Add(grid);
    7.  
    8.     grid.DataSource = childDS();
    9.  
    10.  
    11. }
    12. protected void WebHierarchicalDataGrid1_RowIslandDataBinding(object sender, RowIslandEventArgs e)
    13. {
    14.     //for manual lod null will be returned for the band here. In this simple scenario all children are bound to the same ds.
    15.     //Parent row may be accessed to customize this.
    16.     if (e.RowIsland.Band == null)
    17.     {
    18.        e.RowIsland.DataSource = childDS();
    19.     }
    20.  
    21. }

    Please feel free to contact me if you need more information.

    WHDGPagingManualLOD (2).zip
Children