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
1330
UltraComboEditor Can't access SelectedText unless Editor is in edit mode
posted

I am trying to get the selected text from a UltraComboEditor with the SelcetedText property however it is throwing an InvalideOperationException with the message:

"Can't access SelectedText unless Editor is in edit mode."

I'm not sure what this means nor do I know what it means to be in edit mode.

Parents
No Data
Reply
  • 469350
    Offline posted

    SelectedText is the portion of text which is selected (highlighted) in the text portion of the control. This is the same as SelectedText in a Textbox control. So it only applies when the control has focus (is in edit mode).

    I suspect you probably want the Text of the selected item on the list, in which case, you should just be using the Text property of the control, not SelectedText.

Children