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:
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?
Hello twixer,
Have you considered using a regular UltraTextEditor with a DropDownEditorButton added to its ButtonsRight collection. The DropDownEditorButton has a Control property which allows you to specify a control to display in the dropdown. In your case you could create an UltraGrid and set it as the value of the DropDownEditorButton.Control property. You could handle the UltraTextEditor.EditorButtonCloseUp event to set the text of the editor.
Hi Dave,
Thanks for your reply, really interesting solution. I'll try this.
Meanwhile, I've got couple of questions: does UltraTextEditor supports auto-suggest mode? I mean, should I manually control when UltraGrid from dropdown will be shown or it will appear automatically as for UltraCombo? And also I'm interesting, what will happen if user press up and down arrow when textbox area of UltraTextEditor has a focus. Will cursor move left and right or will navigation between rows in grid from dropdown?