This is a migrated thread and some comments may be shown as answers.

[Solved] Load on Demand + Multiple Selections

1 Answer 122 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 20 Feb 2008, 10:03 PM
I'm trying to see if this is possible, and I think it is, I just can't seem to figure out the coding.

I have a RadComboBox that I'm selecting multiple email addresses out of, so I have the AutoCompleteSeparator=";" turned on. I also have it using LoadOnDemand. This works great for the first email address, but when you start typing the second one, it's using the entire ComboBox text to search for the next value, not just what's after the last ";". Of course it doesn't find a match and then deletes your entry.

I'm thinking the solution is to search e.Text (this is the ComboBox text) for the last ";" and set e.Text to everything past that last ";". This is actually more straight forward .NET programming than something to do with the RadComboBox, but I thought someone here might have already tried this and could help.

I appreciate the assistance.

1 Answer, 1 is accepted

Sort by
0
Philip
Top achievements
Rank 1
answered on 20 Feb 2008, 10:47 PM
Got it figured out :)

Here it is if anyone is interested

Dim emailcheck As String = e.Text.Substring(e.Text.LastIndexOf(";") + 1, e.Text.Length - e.Text.LastIndexOf(";") - 1) 
Tags
ComboBox
Asked by
Philip
Top achievements
Rank 1
Answers by
Philip
Top achievements
Rank 1
Share this question
or