Hi Team,
I am currently using XamMultiColumnComboEditor inside XamGrid as I am new to WPF I not able to implement following things:
1. Enabling alternate Row Colors
2. Displaying multiple column data in the DisplayMemberPath
3. Display Selected items in XamMultiColumnComboEditor as Tooltip once the control is disabled (as the event like MouseEnter doesn't fire for disabled control)
- Can we use any cell event for XamGrid to fire and get selected data from the XamMultiColumnComboEditor and display in the tooltip?
4. Remove the Grid lines inside the Control (i.e. the lines between rows and columns)
5. Showing the full row as greyed out once the data is selected in the previous XamMultiColumnComboEditor, right now only the checkboxs are being unable for selection.Please help me with these issues. Thanks
Hello Piyush,
The XamGrid alternate rows could be controlled using the XamGrid.IsAlternateRowsEnabled property. It should be true for the alternate style to appear.
DisplayMemberPath could be set to a single property of your data source. If you would like a complex data to be displayed, you can define such property combining multiple items and then set the DisplayMemberPath to that property.
The CellControl has an MouseEnter event as well. You can add a style for the CellControl and add an EventHandler for the MouseEnter event. Then, using the visual tree the XamMultiColumnComboEditor and its selected items can be accessed.
The lines between rows and columns could be removed by setting CellControl’s BorderThickness property to 0.
The row style could also be controlled using a CellControl style and DataTrigger as it is suggested in the following forum thread: http://www.infragistics.com/community/forums/t/92359.aspx.
Let me know if you need additional assistance.
Hi Maria,Thanks for your help on this. It was quite self explanatory. I was successfully able to solve 4,5 pt. with the same approach yesterday.Pt 1. The XamGrid alternate rows could be controlled using the XamGrid.IsAlternateRowsEnabled property. It should be true for the alternate style to appear. -- I want to control the AlternateRowEnabled for the XamMultiColumnComboEditor. Can you answer the same.Pt 3. The CellControl has an MouseEnter event as well. You can add a style for the CellControl and add an EventHandler for the MouseEnter event. Then, using the visual tree the XamMultiColumnComboEditor and its selected items can be accessed.
-- Can you please help with some other post link or a sample project with this type of function i.e. using visual tree and getting selected Items of the XamMultiColumnComboEditor into the Cellcontrol of Xamgrid when XamMultiColumnComboEditor is disabled.Also, I would love to have suggestion for:Disable Editing, Deleting selected data items, manipulating them, filtering and also text trimming in the SpecializedTextBox. I tried by just making it readonly but still not getting desired results.Please let me know, the properties apart from Read-Only to be setup in the Style for SpecializedTextBox.
Can I expect an answer as early as possible, as I stuck in with a very important part.Thank You!
Hello Piyush,Alternate row background should be implemented by a custom logic. To do this you can use the XamMultiColumnComboeditor.DropDownOpened event and go through the visual tree to change the background color of the cells which are placed inside the odd or even rows. Please note that this will be correctly applied for rows which are not virtualized (when all rows are visible).You can suggest the alternative support for XamMultiColumnComboEditor as a new product idea for future versions at http://ideas.infragistics.com.Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea 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.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. Remember that for your suggestion to be successful, you need other members of the community to vote for it. You can also link back to this thread for additional details.Thank you in advance to submitting your product idea.I have added a sample application illustrating the approach with the CellControl.MouseEnter event in order to display a tooltip with the SelectedItems in the XamMultiColumnComboEditor.Regarding the disabling the deleting, editing and some other interaction on the SpecializedTextBox , it looks that you would like to have a non-editable combo editor. Krasimir shared a sample project regarding this at: http://www.infragistics.com/community/forums/p/89010/441304.aspx#441304.Let me know if you need further assistance.
Hi Maria,
There is no attachment of the sample application for CellControl.MouseEnter event. Can you please attach it?
I am attaching the project illustrating the implementation of the tooltip which shows the selected items in the disabled XamMultiColumnComboEditor.