Hi,
I got problem with SelectedItems binding - If I put breakpoint to the Setter of the SelectedComboFilterItems it will never be hit.
View:
<
telerik:RadAutoCompleteBox
x:Name
=
"ComboFilterAutoCompleteBox"
Grid.Column
=
"1"
Grid.Row
=
"5"
Margin
=
"1"
HorizontalAlignment
=
"Stretch"
TextSearchMode
=
"Contains"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
TextSearchPath
=
"FormattedName"
DisplayMemberPath
=
"Name"
SelectionMode
=
"Multiple"
ItemsSource
=
"{Binding ComboFilterItems,Mode=TwoWay}"
SelectedItems
=
"{Binding SelectedComboFilterItems,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
IsEnabled
=
"{Binding ComboFilterEnabled}"
FilteringBehavior
=
"{StaticResource CustomFilteringBehavior}"
<telerik:RadAutoCompleteBox.DropDownItemTemplate>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding FormattedName}"
/>
</
DataTemplate
>
</
telerik:RadAutoCompleteBox.DropDownItemTemplate
>
</
telerik:RadAutoCompleteBox
>
Here is ViewModel:
public ObservableCollection<
DocumentType
> mSelectedComboFilterItems = new ObservableCollection<
DocumentType
>();
public ObservableCollection<
DocumentType
> SelectedComboFilterItems
{
get
{
return mSelectedComboFilterItems;
}
set
{
mSelectedComboFilterItems = value;
}
}
public ObservableCollection<
DocumentType
> ComboFilterItems { get; set; } = new ObservableCollection<
DocumentType
>();
Rest of the binding is working fine.
If I select few items the SelectedComboFilterItems will hold those values. Just for some reason the setter is never called.
Cheers
Mike
Hi,
Currently the AutoCompleteBox will display items only when you type at least one letter.
Is it possible to display all items when AutoCompleteBox gets a focus? Basically if I click on the AutoCompleteBox I would like to see the list of all available items, then if you start typing it will filter as standard.
Cheers
Mike
Hello,
I have drop down box defined as:
<
tk:RadAutoCompleteBox
Name
=
"Members"
AutoCompleteMode
=
"Suggest"
MaxDropDownHeight
=
"500"
MinDropDownWidth
=
"400"
SelectionMode
=
"Single"
TextSearchMode
=
"Contains"
TextSearchPath
=
"NoLastNameFirstName"
Width
=
"300"
>
<
tk:RadAutoCompleteBox.DropDownItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"{Binding Section.Code}"
Width
=
"50"
/>
<
TextBlock
Text
=
"{Binding NoText}"
Width
=
"70"
/>
<
TextBlock
Text
=
"{Binding LastNameFirstName}"
/>
</
StackPanel
>
</
DataTemplate
>
</
tk:RadAutoCompleteBox.DropDownItemTemplate
>
<
tk:RadAutoCompleteBox.FilteringBehavior
>
<
tk:AsyncFilteringBehavior
/>
</
tk:RadAutoCompleteBox.FilteringBehavior
>
</
tk:RadAutoCompleteBox
>
As you can see, the Width is set to 300 and, as the drop down is not wide enough to display all the information, the MinDropDownWidth is set to 400.
Unfortunately, the result is not what's expected: instead of making the drop down wider, it still has a width of 300, but is just moved to the right by 100!
Hi
The drop down always opens when you click the drop down button.
Is it possible to have standard drop down behavior that when you click and the drop down is already opened it would close and not just open again?
It is possible to set the width of the drop down menu to the width of the widest item in the list?
Currently when you scroll the drop down menu resizes automatically if DropDownWidth is set to Auto.
SelectionMode = Multiple, I am populating ItemsSource with with a list, then I programmatically populate SelectedItems with item from that list, but SearchText remains blank, In Single Selection mode when I programmatically set SelectedItem the value at TextSearchPath does populateSearchText.
In Multiple selection mode when multiple objects are selected by the user SearchText does not display simple text, but rather a series of boxes with a close button,and at that time SearchText is blank.
How can I have the SearchTextfield display the selected items the same programmatically as when the user manually selects the items?
I have an radautocompletebox with a list of forms, I want to be able to search on the form number or name, but for space purposes only display the form number once a form is selected.
I have a list of form objects with these properties:
Value = "001"
Display = "Identification Card"
ValueDisplay = "001-Identification Card"
The autocomplete box:
TextSearchPath = "Value"
DisplayPath = "ValueDisplay"
This shows the ValueDisplay in the dropdown and selects Value when selected but it does not allow for searching on the form name (Display).
Is there a way to allow searching on ValueDisplay but only show Value when selected?
Hi,
I have two controls , first RadAutoCompleteBox , sec TextBox. As a Datasource of RadAutoCompleteBox I've a DataTable ( with 4 columns) , when I start insert text requesting is starting and I have to select item on dropdown , and when I select item I want to get third column of selected (from datable) item and put into second TextBox . I is possible ?