Hi,
I know XamDataGrid can do hierarchy display of data. Can anyone point me to information on how to do this?
Senario: I'd like to bind to the xamDataGrid an observable collection of Class1, which itself has a observable collection of Class2. Class1 and Class2 have their own properties that need to be shown as fields in the grid (Class1 fields shown at top level, Class2 fields shown at level2). I need to be able to delay the loading of Class2 data for each Class1 object until a user expands the top level row. Also need to be able to load second level data using paging since there could be a large number of rows at the second level.
(ideally I'd like to have DataTemplates to control what data to display at each level instead of showing all properties of the class be default)
thanks in advance.
-Houbin
Hello Houbin,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
If this is what you were looking for please verify the answer so it helps other users as well.
Sincerely,Petar MonovDeveloper Support EngineerInfragistics Bulgariawww.infragistics.com/support
Hello
I've been looking for this problem, and it seems that help document provided here doesn't really have a solution.
I'm using XamDataGrid WPF 12.2
What I'm trying to achieve, is the multi-level hierarchy in such grid.
So, lets say we have a parent nodes and "Leafs".
We bind our XamDataGrid to the Collection of nodes.
Each node can have muliple leaf nodes, but also multiple nodes.
For the nodes - just a name should be displayed in the grid
For the leaf - my custom properties should be displayed.
So I need just two field layouts, one for the nodes and one for the leafs.The problem is that I don't know how to set FieldLayout to the particular "type". I don't want to set FieldLayout to the hierarchy level.
It would look like this:
[+]Root
[-]Root
Leaf
Can anyone help me how to achieve this?