Multiple Select On Click

4 posts, 0 answers
  1. Karl Maynard
    Karl Maynard avatar
    19 posts
    Member since:
    Apr 2005

    Posted 07 Aug 2008 Link to this post

    Requirements

    RadControls version

     2.8 (others may also work)

    .NET version

     n/a

    Visual Studio version

     n/a

    programming language

     Client Side - Javascript

    browser support

    all browsers supported by RadControls

     

  2. PROJECT DESCRIPTION
    I was looking for a quick and simple method to allow a user to select multiple items from a RadCombo box that displayed an email address book. The idea being, the data in the combo box was the possible email addresses that a user could enter.

    The following quick javascript function linked to the OnClientSelectedIndexChanged event produced the desired results.
  3. HOW TO

    Set the "AutoCompleteSeperator" to ;
    Set the "OnClientSelectedIndexChanged " to onSelectedItemChanged
  4. And include the attached javascript in the page.

  • Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 07 Aug 2008 Link to this post

    Hello Karl Maynard,

    RadComboBox already has a property called AutoCompleteSeparator.

    Sincerely yours,
    Veskoni
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  • Karl Maynard
    Karl Maynard avatar
    19 posts
    Member since:
    Apr 2005

    Posted 07 Aug 2008 Link to this post

    The AutoCompleteSeperator defines the character to seperate selections when you wish to have multiple selections.

    The problem I orginally had is that once the user makes the first selection the combobox is completed, then if you click on the combobox and try pressing a key it wipes out the selection (no surprise).

    So, by combining my javascript and the AutoCompleteSeperator, it is then possible just to click on one option after another without having to "type" anything into the combo box.

    /karl.
  • Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 07 Aug 2008 Link to this post

    Hi Karl Maynard,

    Can you please attach the complete project (you can omit only the dll files) so we can publish the code library?

    Thanks

    Kind regards,
    Veskoni
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  • Back to Top