Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > ComboBox > Multiple Select On Click

Not answered Multiple Select On Click

Feed from this thread
  • Karl Maynard avatar

    Posted on Aug 7, 2008 (permalink)

    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

     

  • 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.
  • HOW TO

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

Reply

  • Veselin Vasilev Veselin Vasilev admin's avatar

    Posted on Aug 7, 2008 (permalink)

    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.

    Reply

  • Karl Maynard avatar

    Posted on Aug 7, 2008 (permalink)

    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.

    Reply

  • Veselin Vasilev Veselin Vasilev admin's avatar

    Posted on Aug 7, 2008 (permalink)

    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.

    Reply

  • Back to Top

    Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > ComboBox > Multiple Select On Click