Hello,
I have couple of questions on grouping in XamDataGrid-
1. I have 2 columns StaffCategory and StaffTypes which are grouped in XamDataGrid. When StaffTypes are empty, I want to merge StaffCategory cell with StaffTypes cell for that particular row. This way may be I can avoid showing empty group.
2. Is there a way disable group item count?
CheersSagar
Hello Sagar,
I have been looking into your questions.
Regarding your question about how to disable the count of the items in a group - I can suggest adding the default style for the GroupByRecordPresenter to your project. The default styles you can find under the following directory on your computer: C:\Program Files (x86)\Infragistics\2015.2\WPF\DefaultStyles\DataPresenter.
Then you can change the binding for the Content of the ContentControl to Record.Value instead of Description.
I have created a small sample application in order to show you this functionality.
Regarding your question about the cell merging in the XamDataGrid - currently the controls does not provide functionality for merging the cells. You can suggest new Product Ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.
Steps to create your idea:
1. Log into the Infragistics Product Ideas site at http://ideas.infragistics.com (creating a new login if needed).
2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)
3. Add your product idea and be sure to be specific and provide as much detail as possible.
• Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!
• [CASE: “Reference case [case number], FORUMS: “Include a link to this thread”] in your idea so product management will be able to look back at this case.
The benefits of submitting the product idea yourself include:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
Additional benefits of the Product Idea system include:
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
The product ideas site allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for contacting Infragistics.
Hi Gergana,
Your grouping count removal sample does work for me.
However, first letter of group text overlaps with left side of grouping bar where it starts. How do I add some padding space before first character so it wont overlap and clearly visible to user?
Cheers,
Sagar
In addition to above, how do I set foreground and background color of grouping?
Did you get a chance to look into last couple of queries?
Regarding your first question - I am not able to reproduce this issue with the sample application I have attached in my previous post. Would you please modify the sample application with the functionality you are using? Once you provide me with the modified sample application I would be able to further investigate this matter for you.
Regarding your second question - I would suggest taking a look at the following forum threads: http://www.infragistics.com/community/forums/t/34281.aspx,
http://www.infragistics.com/community/forums/t/47264.aspx.
Looking forward to hearing from you.
Thanks for sharing these details. This was really helpful.
Cheers