This is a migrated thread and some comments may be shown as answers.

AutoCompleteBox-like control

11 Answers 206 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Alex Fan
Top achievements
Rank 1
Alex Fan asked on 06 Jan 2011, 06:55 AM
Hi

I have seen a couple of people asking for this from Telerik already and I do understand that we can use ComboBox to achieve similar functionality. But by using radcombobox, it still looks like a dropdown list which doesn't fit into the place where a textbox-like control is much more preferable. The problems that I have are :

1, dropdown button cannot be hidden
2, when user starts typing, it doesn't dropdown the options automatically
3, it doesn't have typeahead, which means in the scenario a large set of options is involved, we cannot quickly type in a few characters and they get sent to webserver, then the smaller and filtered set of options is returned to client for autocomplete selection
4, how can I have multi-column in the dropdown area?

Could we have a solution for this? Thanks a lot.

Regards,
Alex

11 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 12 Jan 2011, 09:23 AM
Hi Alex,

 
Straight to your questions:

  1. The DropDown button can be hidden, but you need to edit the template of the RadComboBox. You could remote the dropdown button manually.
  2. In order to open the dropdown when it is focused, I would suggest you to use RadComboBox.OpenDropDownOnFocus property to True. You could refer to our online demos - http://demos.telerik.com/silverlight/#ComboBox/Configurator
  3. I would suggest you to refer to the Valeri Hristov's blog - Auto-complete ComboBox with WCF Service.
  4. I would suggest you to set your custom ItemTemplate. Please, refer to the following link - http://www.telerik.com/help/silverlight/radcombobox-grid-like-dropdown.html

I hope this helps. 


Best wishes,
George
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Kakone
Top achievements
Rank 1
answered on 17 Jan 2011, 02:15 PM
Hello,

It would be nice if we could hide the DropDown button with a simple property on the RadComboCox class instead of to edit the template.

Cordially,
Stephane.
0
George
Telerik team
answered on 20 Jan 2011, 09:50 AM
Hello,

Thank you for your feedback, we will consider your suggestion. 

Greetings,
George
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Alex Fan
Top achievements
Rank 1
answered on 20 Jan 2011, 11:15 PM
If we do have that property, that will be great! :) but just need to fix the dropdown logic to make it auto expend like AutoCompleteBox

Can I also suggest to have another 2 properties for result population to make it like AutoCompleteBox: MinimumPrefixLength, MinmumDelay?

Thanks a lot.
0
John
Top achievements
Rank 1
answered on 04 Mar 2011, 07:14 AM
Another vote for the MinimumPrefixLength and the hidden dropdown button.

Is there a work-around for the MinimumPrefixLength?  I truly need this property.  My gridview itemsSource is executed based on user's typing to that combobox. 

Thanks



0
George
Telerik team
answered on 09 Mar 2011, 10:47 PM
Hello John,

 
Attached you can find a sample. I hope this helps.

Kind regards,
George
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Jonathon
Top achievements
Rank 1
answered on 03 Nov 2011, 10:24 PM
Hi,

I get an error: return match(o as string); is a null reference exception. This only happens when I use a collection of objects I created rather than just using strings. Is there a way to make this work for any object?

Thanks,

Jonathon
0
George
Telerik team
answered on 08 Nov 2011, 04:35 PM
Hello Jonathon,

The provided project is only example that is made to work with strings, but you could modify it as well. Meanwhile, we are working on autocompletebox control and it suits your needs. Most probably we will announce the control in Q1.


Best wishes,
George
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jonathon
Top achievements
Rank 1
answered on 08 Nov 2011, 06:49 PM
Thank you George.

I modified the project so that it works with objects, and just overrode the ToString() function for my class to display the value I want displayed.

Glad to hear there will be an official AutoCompleteBox control.

Jonathon
0
Juliana
Top achievements
Rank 1
answered on 11 Nov 2011, 12:14 PM
Hi there,
I also modified the project to work with collection of objects.This works rather fine, but I can't manage to set predefined selected value, for ex. loaded value from db.
Is there any way to set up selected value if nothing is typed yet?
0
Juliana
Top achievements
Rank 1
answered on 17 Jan 2012, 02:23 PM
Can anybody help me?
Tags
ComboBox
Asked by
Alex Fan
Top achievements
Rank 1
Answers by
George
Telerik team
Kakone
Top achievements
Rank 1
Alex Fan
Top achievements
Rank 1
John
Top achievements
Rank 1
Jonathon
Top achievements
Rank 1
Juliana
Top achievements
Rank 1
Share this question
or