Hello!
If I have a RadComboBox, with more than 20 items this thing becomes a bit confusing.
My example:
Window1.xaml.cs:
public partial class Window1 : Window {
public Window1() {
InitializeComponent();
InitializeCombobox();
}
private void InitializeCombobox() {
cbPrimaryData.Items.Clear();
IList<String> dataItems = new List<string>();
for (int i = 0; i < 50; i++) {
dataItems.Add( "Item " + i );
}
cbPrimaryData.DataContext = dataItems;
}
}
in Window1.xaml:
<Grid>
<telerik:RadComboBox Grid.Row="1"
Grid.Column="1"
Grid.ColumnSpan="2"
Height="20"
Name="cbPrimaryData"
VerticalAlignment="Center"
ItemsSource="{Binding}"
Margin="2" />
</Grid>
If I select the item at index 0 everything works fine when I try to open again the combo box the focus is at the beginning of the items list.
If item at index 1 is selected - at the nest attempt to open the combo box the focus goes to Item 17!
index 2 => focus at index 34
Afterwords the focus is moved at the end of the list.
I think that normal and logic would be that the combo box is focused starting with the selected index, and not at the end of the list.
I don't know if I was very clear in the explanation... just try the small example :)
Regards,
RoxanaC
If I have a RadComboBox, with more than 20 items this thing becomes a bit confusing.
My example:
Window1.xaml.cs:
public partial class Window1 : Window {
public Window1() {
InitializeComponent();
InitializeCombobox();
}
private void InitializeCombobox() {
cbPrimaryData.Items.Clear();
IList<String> dataItems = new List<string>();
for (int i = 0; i < 50; i++) {
dataItems.Add( "Item " + i );
}
cbPrimaryData.DataContext = dataItems;
}
}
in Window1.xaml:
<Grid>
<telerik:RadComboBox Grid.Row="1"
Grid.Column="1"
Grid.ColumnSpan="2"
Height="20"
Name="cbPrimaryData"
VerticalAlignment="Center"
ItemsSource="{Binding}"
Margin="2" />
</Grid>
If I select the item at index 0 everything works fine when I try to open again the combo box the focus is at the beginning of the items list.
If item at index 1 is selected - at the nest attempt to open the combo box the focus goes to Item 17!
index 2 => focus at index 34
Afterwords the focus is moved at the end of the list.
I think that normal and logic would be that the combo box is focused starting with the selected index, and not at the end of the list.
I don't know if I was very clear in the explanation... just try the small example :)
Regards,
RoxanaC