This is a migrated thread and some comments may be shown as answers.

SelectionMode="Extended" implicated in crash during keyboard navigation of hierarchy leaf items to grid cells

4 Answers 92 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 20 Apr 2011, 10:16 PM
Hi there,

This is a bug report.  I think I may have come across a problem in the RadTreeListView control while navigating the cells using the keyboard arrow keys.

Problem Context (may not be relevant):  RadTreeListView with several columns, column 0 being a hierarchy column.  The control's ItemSource is bound to an EntitySet<T> containing a self-referencing hierarchy, so T has a property called Children, made up of further T's:

<telerik:RadTreeListView.ChildTableDefinitions>
  <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
</telerik:RadTreeListView.ChildTableDefinitions>

The XAML header for my RadTreeListView is:

<
telerik:RadTreeListView x:Name="RBSTreeListView1"

  AutoGenerateColumns="False"
  CanUserFreezeColumns="False"
  GridLinesVisibility="Both"
  RowIndicatorVisibility="Collapsed"
  HorizontalAlignment="Left"
  VerticalAlignment="Bottom"
  Height="Auto"
  MaxHeight="700"
  EnableRowVirtualization="True"
  ScrollViewer.HorizontalScrollBarVisibility="Auto"
  ScrollViewer.VerticalScrollBarVisibility="Auto"
  HierarchyExpandButtonStyle="{StaticResource st}"
  HierarchyColumnIndex="0"
  SelectionUnit="Cell"
  SelectionMode="Extended"
>

With SelectionMode="Extended" attribute present, and moving the cell selection around with the arrow keys, I experience the following unhandled exception when navigating from one of the hierarchy leaf nodes on the left side of the control (in column 0), back to a grid cell (in column 1) of the same row:

    Code 4004
    Category: ManagedRuntimeError
    Message: 'System.ArgumentNullException: Value cannot be null.'
    Parameter name: key

When I remove the SelectionMode="Extended" XAML attribute, I no longer experience this unhandled exception.

(Point #2... a related side note:  When SelectionMode is not specified and while navigating around the control's grid with the keyboard, any attempt to move from a hierarchy leaf node cell to a regular (non-hierarchy) cell to its right is blocked.  The same is not true if a rightwards move occurs from a hierarchy node that has children.  Why is this so?)

4 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 21 Apr 2011, 02:44 PM
Hi Simon,

Thank you for the feedback.
We are aware of the pointed problems but unfortunately, they are still not addressed. We'll do our best to fix them in one of the next builds.

Excuse us for the inconvenience caused.
 
Kind regards,
Yordanka
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Simon
Top achievements
Rank 1
answered on 21 Apr 2011, 03:16 PM
Hello Yordanka,

Thank you for your reply.  I had looked on Telerik's Public Issue Tracking System (http://www.telerik.com/support/pits.aspx) in the Rad Controls for Silverlight area before posting about this problem here.  I did not find a ticket there there that tracked this problem.

Would you be so kind as to post the Issue ID in Telerik's PITS where I can follow the status / progress on this?  Or a URL to the PITS item would even be better. :)

Much appreciated,

Simon
0
Vanya Pavlova
Telerik team
answered on 22 Apr 2011, 01:22 PM
Hi Simon,

 

The PITS ID of this bug is 2841 and you may track its progress following this link.


Best wishes,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Simon
Top achievements
Rank 1
answered on 22 Apr 2011, 02:39 PM

Thank you very much for the PITS ID and link.  I had a look at the issue there but noticed that it is specific to a Ctrl-RightArrow navigation, and nowhere in the context does it mention the involvement of the SelectionMode="Extended" attribute.  There may, in fact, be two different but somehow related issues.  Perhaps I'll add this context in the issue comments in PITS.
Tags
TreeListView
Asked by
Simon
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Simon
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or