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

Detect Freehand entry into RadComboBox

1 Answer 46 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Berlioz
Top achievements
Rank 1
Berlioz asked on 27 Nov 2011, 10:38 PM
How do you detect that a freehand (maunual) entry is made into the RadComboBox? Naturally, this value has to be validated using regex match pattern...

1 Answer, 1 is accepted

Sort by
0
Accepted
Kevin
Top achievements
Rank 2
answered on 28 Nov 2011, 02:19 PM
Hello Daniel,

You could use the findItemByText js method or the FindItemByText server-side method to search the Items of the RadComboBox to see if it finds any match. If it doesn't find one in the Items array, you can assume it must have been entered. The other way would be to check the SelectedIndex, as I believe it would be -1 for items that don't match an existing item in the drop-down.

I hope that helps.
Tags
ComboBox
Asked by
Berlioz
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Share this question
or