Detect Freehand entry into RadComboBox

2 posts, 1 answers
  1. Berlioz
    Berlioz avatar
    9 posts
    Member since:
    Jun 2012

    Posted 27 Nov 2011 Link to this post

    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...
  2. Answer
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 28 Nov 2011 Link to this post

    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.
Back to Top