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?
Hi Eugene,
Given that none of our current controls extend this functionality without a rather involved custom implementation; I have submitted product idea, PI13020016, to have these behaviors/possibly a new control, considered for implementation in a future release.
If you have any further questions regarding this, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
Whole day was trying to use UltraTextEditor as base control for my custom control. There are problems with focus after dropdown: textbox should be active because user still want to type symbols but grid get focus after dropdown and I cann't find a moment when pass focus back to textbox that dropdown left visible. Anyway, later it will be some sophisticated logic with key pressed event handler and other issues. Seems that it's unreal to implement. Need to redesign whole control.
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?
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.