Canceling SelectionChanging event and expanding item causes a crash

2 posts, 0 answers
  1. Paweł Polaczyk
    Paweł Polaczyk avatar
    8 posts
    Member since:
    Jul 2011

    Posted 17 Jan 2014 Link to this post

    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:

    <t:RadTreeListView x:Name="radTreeListView" AutoGenerateColumns="False" SelectionChanging="radTreeListView_SelectionChanging">
            <t:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
            <t:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" IsReadOnly="True" >
                        <Label Content="{Binding Name}"></Label>

    and a handler:

    private void radTreeListView_SelectionChanging(object sender, SelectionChangingEventArgs e)
        var selectedItem = e.AddedItems.FirstOrDefault();
        e.Cancel = true;

    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.
  2. Vera
    Vera avatar
    263 posts

    Posted 20 Jan 2014 Link to this post

    Hello Paweł,

    Thank you for the provided details. We were able to reproduce the problem and will investigate it further. We cannot commit to any specific date or release where the issue will be resolved since it turned out to be not a trivial one and just a check for null will not resolve it.

    Please excuse us for the inconvenience caused. Your Telerik points have been updated accordingly.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top