Treeview: Focused Node

1 Answer 65 Views
TreeView
Hendrik
Top achievements
Rank 2
Bronze
Iron
Iron
Hendrik asked on 27 Jun 2024, 11:33 AM
The node of a treeview loses its focus and emphasis if another control element receives the focus. How can I keep the selected entry permanently?
Dimo
Telerik team
commented on 01 Jul 2024, 09:00 AM

Hi Hendrik,

The TreeView relies on standard browser focus behavior. There can only be one focused element on the page, so it's expected for the TreeView to lose its focus state when the user clicks or tabs somewhere else.

On the other hand, the item selection is persisted as long as you use @bind-SelectedItems or update the collection in SelectedItemsChanged.

1 Answer, 1 is accepted

Sort by
0
Hendrik
Top achievements
Rank 2
Bronze
Iron
Iron
answered on 01 Jul 2024, 09:06 AM

Thank you Dimo,

the hint with the SelectedItems did the trick !!!!

Tags
TreeView
Asked by
Hendrik
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Hendrik
Top achievements
Rank 2
Bronze
Iron
Iron
Share this question
or