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!!!!!!!
Apologies for the delayed response.
I see that you are setting the Level of your container grid. This can be used to check if a child grid is being rebound uponRowIslandDataBinding.Regarding having behavriors in the child band, you can have them defined for the parent band with inheritance enabled (they can be disabled in the parent band if needed) and after databinding the children, the respective behavriors can be enabled:
Attached is also my previous sample modified to enable paging and sorting only on the child band for the sake of demonstrating the scenario. Let me know if this helps.
Hi dev_here,
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.
Please do not hesitate to contact me if you are still experiencing any issues.
Thank you for your replies.
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.
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?