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
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.
Please feel free to contact me if you need more information.
Petar,
Can you please take a look at my code and let me know what I need to fix.been stuck because of thsi issue. All we want is teh child behaviours to function.Please help!!!!!!!
Been trying to get this working for quite some time now. I cannot seem to able to filter/sort/page the child band. We use version 11.1. Can you point me in the right direction?
I see that when I try to page /filter/sort the RowislandPopulating is being called and ajax indicator indicates its doing something but nothing happens.
I see that if I have RowIslandDataBinding then if(e.RowIsland.Band==null) results false. So it doesnt work for me.
I have Enabledatastate=true and enableajax=true
Please help!
when I enable the RowIslanddatabinding,when checking if(e.RowIsland.band==null) i get a not null So ic annot bind the child DS. I am trying to do manual on demand and this is hwo I ahve my RowIslandsPopulating defined:
protected
void myGrid_RowIslandsPopulating(object sender, Infragistics.Web.UI.GridControls.ContainerRowCancelEventArgs e)
{
//Cancel the default automatic load on demand operation
e.Cancel =
true;
int myId = Int32.Parse(e.Row.Items.FindItemByKey("IdColumn").Value.ToString());
ds = GeDataTableByChild(
exposureId);
// Create Container Grid
BindSecondLevel(e, childGrid);
childGrid.DataMember =
"Child";
childGrid.Level = 1;
childGrid.DataKeyFields =
"MyAddress";
childGrid.DataSource = ds;
childGrid.Band = (
Band)myGrid.Bands[0];
childGrid.Behaviors.CreateBehavior<Infragistics.Web.UI.GridControls.Paging>();
childGrid.Behaviors.Paging.Enabled =
childGrid.Behaviors.Paging.PagerMode = Infragistics.Web.UI.GridControls.
PagerMode.Numeric;
childGrid.Behaviors.Paging.PageSize = 10;
// childGrid.DataBind();
}