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!!!!!!!
Can this be handled in Initializeband? instead or RowIslandDataBinding?
Is this happening because the child grid is not being rebound upon RowIslandDataBinding? Because
e.RowIsland.Level always =0 in RowIslandDataBinding
If there are no behaviours on child enabled then all the child rows are populated on clicking the expand icon of teh grid.
Even with behaviours enabled, its just that behaviours dont work but first page of child is loaded.
Thank you for your replies.
Have you run my attached sample ? Are you experiencing the same issues with it ?
It would be extremely helpful if you can share your working sample so that I can research the matter directly.
Hi dev_here,
Please do not hesitate to contact me if you are still experiencing any issues.
We tried using the sample you provided and it gives teh same error:Collection modified. The one thing that we changed in your sample is that we used the version-free dll.
Why wouldnt the child grid behaviors work with the version -free dll?
Thank you for your reply.
Glad that your issues seem to be resolved.
Please contact me if any questions regarding this matter arise.
Suing the latest SR of the 11.1 seems to get the child behaviors working.
I have tested my sample with the version-free dll and it works with the child grid inheriting paging/filtering and sorting so far.
From your code I can see that you are handling the RowIslandsPopulating event, however note that this event should be fired only once per rowIsland.
Additionally for manual load on demand the default row island expansion should be cancelled by setting e.Cancel = true;
With the approach I have proposed (setting the behaviors in the root band and inheriting them in the child with enableInheritance set to true), there is no need to clear the child's datasource (and infract this would break the behaviors). As RowIslandsPopulating is fired only once when a child row is initially populated, its datasource should be reset on all following postbacks and theRowIslandDataBindingevent.
I have created a support ticket for you regarding this matter - CAS-94987-JN440Z. In order to be able to provide you with more specific feedback regarding this scenario I would need to see a working sample illustrating these issues. Feel free to contact me privately through this case with any relevant information.
You can access your active cases by logging in with your account at www.infragistics.com and going to Account -> Support Activity.
Do not hesitate to contact me if you have any questions.