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

Tab Key Navigation

1 Answer 26 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Daní
Top achievements
Rank 1
Daní asked on 24 May 2011, 03:45 PM
Hello,

I'm using RadTreeListView with both Row and Column virtualization. This RadTreeListView has an "edition column". Using style selectors I'm providing this column with an editor. Only leaf cells are editable, so rows with children items do not show cells, just a description. I want that when user press tab key the treelistview's current cell shift down side. That means if users is in the column editor of the first row, it he presses tab key the current cell must be the editor on the second row and so on. If next row is not a leaf one (it has children), this row must be expanded (if needed) and the first leaf row in its hierarchy set as the current cell.

I've created a CustomKeyboardCommandProvider by inheriting from DefaultKeaboardCommandProvidre and I've cleared the commands returned when Key is TabKey. Then, I try to expand necessary nodes and set the next cell to current. This work fines until the next row is not a leaf row (it contains children).

How can I navigate top to down with the tab key?

1 Answer, 1 is accepted

Sort by
0
Daní
Top achievements
Rank 1
answered on 24 May 2011, 03:50 PM
Solved.

In my behavior I was setting Cell.IsCurrent to true. Calling Focus() method on cell makes it working great
Tags
TreeListView
Asked by
Daní
Top achievements
Rank 1
Answers by
Daní
Top achievements
Rank 1
Share this question
or