Hi, how can i work with hierarchical data in xamGrid and VirtualCollection?, I would like to load some initial data and later, when the user expands the row, fill the childs rows with a virtual collection. Is this possible? Is there a best way to do this?
Hi,
My root as well as my child data is on the server side hence i cant define a property children of type virtualcollection on the server side as shown in the sample. my children property is an ienumerable on the server side. Hence I"m not sure how to implement the itemdatarequested for it on the client side.
You would need to replace the MockDataService usage in ItemDataRequested event handler in the sample with using your actual WCF proxy class and that should be enough.
HTH,
I have a similar problem to the one mentioned in this post. I checked the sample but I wasnt able to find a way to implement it using a WCF service. I want to load only the parent rows first and when i expand any row load its children. Could you please provide a sample for this as well.
Thanks,
sayali
Please, check out the attached sample. I hope you can get the idea about how our components can be used in such scenario.
Regards,
Hi eminieto, Did you try to keep both master rows and child rows in a VirtualCollection istances. If your Row has child rows it is ExpandableRow. You could listen the PropertyChanged event and when it has raised check "IsExpanded" preperty. If this property is true you could load data for child rows via Virtual Collection.
I think this could work.
Best!
Mihail