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

TreeView - Root Node Grey Highlight?

2 Answers 138 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 05 Dec 2012, 03:12 PM

Hello,

I am wondering if the following behavior is intentional, and if there is a work-around.

The behavior I am describing can be seen on your TreeView demo at the following: 
http://demos.kendoui.com/web/treeview/images.html

When working with the tree on the right 'TreeView with sprites', notice how highlighting and expanding collapsing nodes works. Any node I click on gets highlighted orange as it is in a selected state, regardless of whatever node I expand/collapse the selected state stays on the originally selected node and no appearance changes occur with any other nodes. Play around with this for a little. This is all good.

Now...

1) Select the 'index.html' node (under the 'Kendo UI Project' folder node)
        2) Collapse the 'Kendo UI Project' parent folder node
        3) Collapse the 'My Documents' root node
        4) Notice how the 'My Documents' root node gets a grey highlight
        5) Expand the 'My Documents' root node (grey highlight remains)
        6) Expand the 'Kendo UI Project' folder node
        7) Notice how the grey highlight now is removed from the root node, and you can see the original 'index.html' node is still selected

Or another scenario:

1) Refresh the web page
        2) Without selecting any nodes, collapse all nodes on tree
        3) Expand the 'My Documents' root node
        4) Notice how the 'My Documents' root node gets a grey highlight



What is with the root node getting highlighted grey?

Is that intentional?

Either way, is there a workaround way to stop this from occurring?


Thanks for your help!
- Lee

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 07 Dec 2012, 10:35 AM
Hi Lee,

 
Please note that this behavior is intentional -  to enable the keyboard navigation when the currently selected node is hided after collapsing it's parent we focus the first element of the tree.

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Lee
Top achievements
Rank 1
answered on 07 Dec 2012, 02:22 PM
Thank you for your prompt response.
Tags
TreeView
Asked by
Lee
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Lee
Top achievements
Rank 1
Share this question
or