Remove the possibility for one or more rows to be searched on.
In other words, it should not be possible to select disabled item rows by search.
Hi Telerik-Team,
i found a bug similar to forum post, but not the same.
In MultiColumnComboBox when SelectionBoxesVisibility is set to 'collapsed' and and whatever you set AutoCompleteMode to (different from the forum post),
if you select the first item it is not shown. Although the NullText is removed. It works perfectly for all the other items. This is quiet a problem if you only have one item in the dropwdown :D
Regards,
Mats
It would be usefull to have a Property on the RadMultiColumnComboBox which represents the inputted searchtext. This Property should be TwoWay-Bindable.
A usecase for it could be to programmatically manipulate the searchtext.
For example setting it to NULL on LostFocus:
private void mccb_LostFocus(object sender, RoutedEventArgs e)
{
this.mccb.ChildrenOfType<RadWatermarkTextBox>().First().Text = string.Empty;
}
Instead of hacking around with the visualTree etc. one could simply bind the property. This would also be MVVM compliant.
Proposed Name for the Property "SearchText".
The RadMultiColumnComboBox has a separate keyboard functionality executed when the watermark textbox (the search box) is focused and the dropdown is open. Basically, you can navigate through the rows of the gridview part and select them using the keyboard.
Currently, this functionality is private. Introduce an API that allows you to customize the keyboard navigation. Consider something similar to the KeyboardCommandProvider of RadGridView.
private void ScrollViewer_PreviewMouseWheel(object sender, MouseWheelEventArgs e)
{
if (sender is ListBox && !e.Handled)
{
e.Handled = true;
var eventArg = new MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta);
eventArg.RoutedEvent = UIElement.MouseWheelEvent;
eventArg.Source = sender;
var parent = ((Control)sender).Parent as UIElement;
parent.RaiseEvent(eventArg);
}
}
When biding IsVisible of column in RadMultiColumnComboBox/GridViewItemsSourceProvider using MVVM pattern, the binding won't work initially, but is works as expected if removing the ElementName and adding it back in the below example xaml using debugger.
PS1. The binding for CheckBox(in the below sample) works with issue but not for RadMultiColumnComboBox
PS2. Also attached full sample code.
<Window x:Class="TestProject.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local="clr-namespace:TestProject"
Title="MainWindow" Height="350" Width="525">
<Grid Margin="0,0,0,20" x:Name="rootGrid">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Button Grid.Row="0" Command="{Binding ToggleCmd}">Toggle Last Name Visible</Button>
<CheckBox Grid.Row="1" IsChecked="{Binding IsLastNameVisible}">Is Last Name Visible</CheckBox>
<telerik:RadMultiColumnComboBox Grid.Row="2">
<telerik:RadMultiColumnComboBox.ItemsSourceProvider>
<telerik:GridViewItemsSourceProvider ItemsSource="{Binding AllClubs}" AutoGenerateColumns="false" >
<telerik:GridViewItemsSourceProvider.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding LastName}"
IsVisible="{Binding DataContext.IsLastNameVisible , ElementName=rootGrid}" />
</telerik:GridViewItemsSourceProvider.Columns>
</telerik:GridViewItemsSourceProvider>
</telerik:RadMultiColumnComboBox.ItemsSourceProvider>
</telerik:RadMultiColumnComboBox>
</Grid>
</Window>
Hello,
Add non-editable feature to MultiColumnComboBox ( like on ComboBox ).
Thx,
Tino.