I am facing some issues in displaying the combobox selected item in the combobox(treeview inside combobox) once its collapses
I have a multiselect combobox and when the user checks one or more items i need to display them as csv but for that I had to set the combobox IsEditable property to "True" and when i do so the items are diplayed but the entire screen except the combobox freezes.
Combobox-
<
telerikInput:RadComboBox FontFamily="Verdana" IsEditable="False" FontSize="10" x:Name="radcmbGroupMitigationsBy" HorizontalAlignment="Left" Width="135" Margin="40,45,0,0" VerticalAlignment="Top">
<telerikInput:RadComboBox Height="25" Width="0"/>
<telerikNavigation:RadTreeView x:Name="radtvGroupMitigationsBy" SelectionMode="Multiple" Checked="radtvGroupMitigationsBy_Checked" Unchecked="radtvGroupMitigationsBy_Unchecked">
</telerikNavigation:RadTreeView>
</telerikInput:RadComboBox>
Checked events-
private void radtvGroupMitigationsBy_Checked(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
try
{
this
.PerformGrouping(true, e.OriginalSource.ToString());
radcmbGroupMitigationsBy.IsEditable =
true;
if (radcmbGroupMitigationsBy.Text != null)
{
radcmbGroupMitigationsBy.Text += "," + " " + Convert.ToString(e.OriginalSource);
}
else
{
radcmbGroupMitigationsBy.Text =
Convert.ToString(e.OriginalSource);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message + ex.StackTrace);
}
}
"PerformGrouping" is simply a function that I am using for performing custom grouping.
Please suggest how to display the selected\checked items from a radcombobox (the one with the treeview inside).
As I have a limited knowledge of the Radcombobox behaviour I may be doing something wrong here so please feel free to point out the errors and do suggest some solution.
Thanks in Advance,
Abhishek Chauhan