Infragistics sample browser contains an example of xamGrid / Data /Self-Referencing Data where grid shows employee hierarchy grouped/linked by direct reporting person. Is there a way to implement similar functionality in xamDataGrid with the following:
Data source contains items of the same data type and row data model has no children items. ParentID and LinkGroupID are available as below:
We are looking for ways to minimize the space used for grouping. As there is always a parent/lead record in a group and only one level down, we expect this record to be a top item in a group with collapse/expand button on the left:
Other grouping options are available for users but no matter what other grouping is selected, our linked records go together.
If linked group is collapsed, parent/master/top record is expected to be displayed.
Thank you for posting on our forums.
I will create a sample for the required XamDataGrid with self-referencing data. I will research to find a way to display parent record when linked group is collapsed and will post that information by end of day Friday.
Please let me know if you have any questions.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
While working on the required self-referencing data XamDataGrid sample I got couple of questions.
1. Are you trying to achieve the self-referencing data structure through grouping?
2. When using the self-referencing hierarchical data why do you want to do the grouping?
Please elaborate on the details of your requirement and I will further look into this issue as soon as I receive this information.
Regarding you questions,
1) Data for the grid is coming without grouping, entries have no children and we do not generate children records neither do some other preparation. It would be most convenient to have this functionality handled in xamDataGrid. Currently we have grouping in xamDataGrid, but our users do not like that extra header row which takes space only.
2) The nature of data is so that for some records we have parent record and there might be 2-5 other records associated with that parent. Users want to see those 'child' records initially collapsed but want to see them in the same grid when needed. We need to show those 'child' records in the same grid as if they were regular records (and they are). We have a lot of extra functionality incorporated into our data grid rows and want it to be available for expanded rows.
Our xamDataGrid is configured so that it automatically generates columns based on source item properties.
What I currently was able to do is to apply grouping by some property, hide header row, added expand/collapse icon to the master/parent record in that group and hide/show other items in a group through a behavior changing Visibility property of items in GroupByRecord.ChildRecords collection. It’s not very nice solution from code perspective, but it works. The only challenge I still have is to somehow visually show where the group ends, like a border around rows in a group or etc.
After investigating for a way to draw border around a custom grouped area in XamDataGrid and doing some research, this has been determined to be a product idea. You can suggest new product ideas for future versions by emailing firstname.lastname@example.org.
Submitting your idea will send it directly to our product management team so that it can be imported into our new ideas community once live: http://ideas.infragistics.com.
Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. You can also link back to this thread for additional details.
Thank you in advance to submitting your product idea.