I have to use some sort of dropdown/popup solution due to screen realestate of a tablet. One of the dropdowns needs to allow multiselection but by default all the selected values populate the textbox with a separator. Is there a way to override what the combobox displays so that it always displays a static string but only in multiselection mode?
Hello Mike,
Are you using the XamComboEditor that is WPF only or are you using the one that is Shared? The WPF only one has a Text property which you can use.
The Shared only one will require you to obtain the SpecializedTextBox and change the Text property based on how many items are selected. To obtain the Specialized textbox, use the following code: SpecializedTextBox STB = Utilities.GetDescendantFromName((DependencyObject)XamComboEditor1, "TextBoxPresenter") as SpecializedTextBox;
Also, here is a link to another forum post that had a similar issue to yours resolved: http://ko.infragistics.com/community/forums/p/89755/443336.aspx
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewDeveloper Support IInfragistics Inc.www.infragistics.com/support
How do I tell which one I am using? I have a reference to InfragisticsWPF4.Controls.Editors.XamComboEditor.v14.1.dll so I assume it is the WPF only version. However, I ended up restyling it in order to be able to have rounded corners and change the background color so I might have pulled the shared version control template. I do not see any text property though. Is there a difference in functionality or performance between the 2 versions?
I am actually having one heck of a time doing anything non stock with this control. I feel like I have just about rewritten the whole thing. I need to be able to remove the horizontal scrollbar from the popup/dropdown and have the control resize to fit the string upon load to prevent the need for the horizontal scroll.