I just want to let you know about a bug that I found and I do not really see how to report a bug (and not a feature suggestion) in the issue tracker.
I have a RadTreeListView.
I want to click on an item on the list to expand it.
So that I implemented the following:
and a handler:
This causes an exception when I start the application (basically, when the selection is changing).
Removing e.Cancel = true line solves the issue, but well... if I want to cancel this event, then the app crashes.
I have a RadTreeListView.
I want to click on an item on the list to expand it.
So that I implemented the following:
<t:RadTreeListView x:Name="radTreeListView" AutoGenerateColumns="False" SelectionChanging="radTreeListView_SelectionChanging"> <t:RadTreeListView.ChildTableDefinitions> <t:TreeListViewTableDefinition ItemsSource="{Binding Children}" /> </t:RadTreeListView.ChildTableDefinitions> <t:RadTreeListView.Columns> <t:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" IsReadOnly="True" > <t:GridViewDataColumn.CellTemplate> <DataTemplate> <Label Content="{Binding Name}"></Label> </DataTemplate> </t:GridViewDataColumn.CellTemplate> </t:GridViewDataColumn> </t:RadTreeListView.Columns></t:RadTreeListView>and a handler:
private void radTreeListView_SelectionChanging(object sender, SelectionChangingEventArgs e){ var selectedItem = e.AddedItems.FirstOrDefault(); e.Cancel = true; this.radTreeListView.ExpandHierarchyItem(selectedItem);}This causes an exception when I start the application (basically, when the selection is changing).
Removing e.Cancel = true line solves the issue, but well... if I want to cancel this event, then the app crashes.