Multiple Select On Click

Thread is closed for posting
4 posts, 0 answers
  1. A221170E-5C9C-40A2-8507-0EE07795ECD4
    A221170E-5C9C-40A2-8507-0EE07795ECD4 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.

  • 7ECFE2AE-669B-42F5-B863-CECDEE6FD6D6
    7ECFE2AE-669B-42F5-B863-CECDEE6FD6D6 avatar
    2992 posts
    Member since:
    Jul 2015

    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.
  • A221170E-5C9C-40A2-8507-0EE07795ECD4
    A221170E-5C9C-40A2-8507-0EE07795ECD4 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.
  • 7ECFE2AE-669B-42F5-B863-CECDEE6FD6D6
    7ECFE2AE-669B-42F5-B863-CECDEE6FD6D6 avatar
    2992 posts
    Member since:
    Jul 2015

    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

    This Code Library is part of the product documentation and subject to the respective product license agreement.