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

Silverlight 4 - Excel style selection in RadTreeListView

1 Answer 37 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Ollie
Top achievements
Rank 1
Ollie asked on 26 Jun 2012, 10:05 AM
We're trying to implement excel style selecting in our tree view when either the Ctrl or Shirt buttons are pressed.

We've got an implementation for Ctrl working perfectly but we are having trouble getting the selection working with the Shift buttons.

FYI - normally our tree view operates as a single row select view, but when the Ctrl\Shift button is pressed we changed the SelectionMode & SelectionUnit to Mulitple & Cells respectively.

I was expecting to be able to use the SetSelectionAnchor method but this seems to do nothing!

Can some give an example of how to do this programmatically? - I'm trying this from a behavior.


Cheers

Ollie Riches



1 Answer, 1 is accepted

Sort by
0
Ollie
Top achievements
Rank 1
answered on 26 Jun 2012, 11:25 AM
My mistake, I wasn't setting the SelectionMode to Extended when the Shift buttons was being pressed
Tags
TreeListView
Asked by
Ollie
Top achievements
Rank 1
Answers by
Ollie
Top achievements
Rank 1
Share this question
or