Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3590
Is there a way to override what is displayed in textbox of the XamComboEditor when multiselection is enabled and selections are made
posted

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?

Parents
  • 34830
    Offline posted

    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://es.infragistics.com/community/forums/p/89755/443336.aspx

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Developer Support I
    Infragistics Inc.
    www.infragistics.com/support

     

Reply Children