Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
Trying to create auto-suggest control with ability to select multiple records
posted

Hi gyus,

I need to create auto-suggest control with ability to select multiple recrods which will load data for suggested rows dynamically ( I've got a lot of records in database, so I cann't load them all during control initializing).

Here is ideal prototype for me: http://www.telerik.com/products/aspnet-ajax/autocomplete-box.aspx

I didn't find complex control in Infragistics lib (I'm using Infragistics v10.1) which can satisfy my requirements. If I'm not right, please, show me a control with described functionality.

Thereby, I decided to create my own one control using UltraCombo as base control for my custom implementation.

Let me explane how it works:

  • after user typed symbol appropriate data is loading and dropdown is showing
  • user navigates to necessary row using mouse or up and down arrow keys
  • to select a record users clicks on row or press Enter button
  • selected record appears in textbox area and becomes static (user can only delete it, but cann't edit)
  • goto step 1 to select another one record

During implementation I faced a problem that I type a couple symbols, dropdown appears and when I click up or down arrow keys starts navigation between rows in dropdown and text in textbox area is changing according to current row in dropdown.

It's a problem for me because I need to keep textbox area static after some records were selected (see step 4 from list).

So, the question is, how can I prevent text changing in textbox area during navigtion in  dropdown?