autocompletebox

Silverlight AutoCompleteBox SelectedValue(?)

Hi, I need to implement an editable combobox where users can select existing values from the data/tables. It needs to be editable because users can also add new rows to the table by entering new values in the editable combobox, so I put an AutoCompleteBox control into my page but I can't find any sample on how to implement such feature....

How do you get the selected item from a Silverlight AutoCompleteBox?

Hi, I'm hopefully missing something extremely obvious here, but for the life of me I can't figure this out. I have an AutoCompleteBox control that is retrieving results by way of an asynchronous call, although I can't find a reliable way in which to know when a user has selected an option from the list of returned values. I've tried ho...

How to refresh (i.e. clear text from) an autocompletebox once an item has been selected?

Hello, I'm designing a Silverlight screen where I use an autocompletebox control. One the item 'foobar' has been selected in the autocompletebox, it's text reads 'foobar'. If a user wants to select the 'quux' value, he has to: delete the text from the control, then to type 'qu' so as to be able to select 'quux'. Is there a way to ...

Autocomplete textbox collection

In windows forms a textbox can be made into an autocomplete textbox by giving it a simple list of strings or by giving it a custom source that can only be a AutoCompleteCollection which is a strong typed list of strings. I would like to be able to add a key to each string..so that whenever any suggestion is selected I can grab that key....

Unable to add AutoCompleteBox to toolbox or handcrafting XAML

Hello, I'm trying to use the AutoCompleteBox control from the february release of WPFToolkit. I install the toolkit using the .msi file, add the assembly reference, and only two new controls appears in my toolbox: Calendar and Datepicker. I then tried to handcraft the XAML as shown in http://stackoverflow.com/questions/2338690/wpf-autoc...

Unknown Build Error using WPF Toolkit

I installed the Feb 2010 WPF Toolkit as I'm interested in evaluating the AutoCompleteBox control and I'm having extremely limited success. I can get the control to work, but as soon as I try and set any of it's properties in XAML, I get the following: Unknown build error, 'Cannot resolve dependency to assembly 'WPFToolkit, Version=3.5.4...

jQuery UI autocomplete combobox in a modal dialog

I want to use a autocomplete combobox http://jqueryui.com/demos/autocomplete/#combobox within a modal dialog. However whenever I click on the down arrow (of the combobox) it causes a refresh that results in my modal window closing. How do I stop the refresh from occuring? (I am still new to jQuery) I am using UI 1.8 and jQuery 1.4....

Cannot find System.Windows.Controls.dll for Silverlight 3

Where can I find System.Windows.Controls.dll for Silverlight 3? I need it to be able to use the TreeView control and the AutoCompleteBox control. Toolkit November 2009 is installed but the dll that I need was not included. ...

WPF AutoCompleteBox - How to restrict it choose only from the suggestion list?

Hello, I would like to restrict WPF AutoCompleteBox (wpf toolkit control) to select an item only from the suggestion list. It should not allow users to type whatever they want. Can someone suggest me how to implement this? Any sample code is appreciated. ...

Autocompletebox text in Silverlight

I'm having trouble getting the autocomplete box in System.Windows.Controls.Input working as I wish. When I start typing the dropdown section that displays the filtered list doesn't show the property that I'm binding to, it shows the class name instead. So in the example below, when I type in my - instead of showing 'My Name' it shows M...

That assembly does not allow partially trusted callers When Using AutoCompleteBox in DataGridTemplateColumn

I Develope a XBAP Partial trust that use datagrid. This DataGrid has a TemplateColumn that use AutoComplateBox as Editing Element. When Click on One of that Column's cell throw the exception System.Security.SecurityException: That assembly does not allow partially trusted callers. any idea? tanx ...

WPF/Silverlight AutoCompleteBox with ability to add new values to list.

Hi, I would like to use autocompletebox with a list of values, but also add new values to the list if a user enters one that isn't present. I currently have a string property in my view model called 'Comment'. Currently this is bound to a textbox in the view - user types a comment and the view model is updated. Simple. To save time, m...

Customising Silverlight AutoCompleteBox with multiple filtered ListBoxes

Hi, How should I go about customising the AutoCompleteBox in Silverlight so that while typing I can filter multiple Selector ListBoxes. Basically I want a Popup that contains 'n' ListBoxes vertically stacked and when I type, the filtering operates on all of them simultaneously. I can then select an item from any of the ListBoxes. Thank...

Combining Variable Numbers of Lists w/ LINQ

I have a list (List) of objects. Each of those objects contains a list (List) of strings describing them. I'm needing to create a dropdown containing all of the distinct strings used to describe the objects (Cards). To do this, I need a list of distinct strings used. Any idea how/if this can be done with LINQ? ...

TreeView inside AutoCompleteBox's popup

Hi, Inspired by this post, I'm trying to use a TreeView inside the AutoCompleteBox's popup in order to show hierarchical data. Here's what i did: I Made my own TreeView that implements ISelectionAdapter (not sure it's perfect) Edit AutoCompleteBox template and change the selector to my treeview Try Bind my ViewModel to it Unfortuna...

Silverlight autocompletebox tooltip

I have a autocompletebox control in a datagrid. I have a tooltip associated with the autocomplete box. If the dropdown list is open I loose the tooltip. Is it possible to put the tooltip on the textbox in the dropdown list? Is so, how. ...

AutoCompleteBox in Silverlight 4 bound to dictionary - show only values issue

Hello, I have used AutoCompleteBox usercontrol. I have a dictionary of type Dictionary<int,string> which contains ids and names. I want to show only names in the AutoCompleteBox. I can do it with autoCompleteBox1.ItemsSource = dict.Values; My problem is whenever any name is selected I want to retrieve the id associated with it. But ...

Silverlight, resetting AutoCompleteBox.SelectedItem to null

I have a problem with AutoCompleteBox. I wanted to use it as editable combobox. So I created custom control inheriting from AutoCompletBox and added two dependency properties named as SelectedValue (for binding to DataContext) and SelectedValuePath. When user selects an item, my custom control updates SelectedValue as the following way: ...

Is it possible to use RadMaskedTextBox inside an AutoCompleteBox in Silverlight / Expression Blend?

It's probably doable, but with my n00b skills I couldn't figure this out yet. When I try to "Make Into Part" on the RadMaskedTextBox, Expression Blend complains that it's not a TextBox. How can I make it to use it as a proper control part? Can I "typecast" somehow in XAML? Thanks in advance for all help! ...

Silverlight 4.0 + MVVM Pattern + Copy Paste a name in AutocompleteBox

Hi, I am using a Autocomplete textbox for "like" search text from Database using KeyDown Event. One of the scenario is COPY-PASTE textname to Autocompletebox where data is already available in Database. I was unable to complete this scenario because when I try to paste the text, "Ctrl" is getting fired instead of "Ctrl+V" from keyboar...