I have a radtreeview control inside a stackpanel. I have a text box and a button to search for a word. When i search a word, it traverses through entire list and selects the item which contains the search word.
This functionality is working properly for the list items visible in the stackpanel. The items which are not visible in stackpanel are getting selected but are not coming into the view of stack panel. The scrollbar is not scrolling to show the selected item.
This above mentioned issue is not shown on all items. This is comming only for the first child element of a parent. When the second item is selected programatically, scrollbar is moving and the item is comming into view.
I tried with using BringIntoView and BringItemintoView events. But its not working
In Xaml
Binded IsExpanded property to expand a parent if child is selected programatically.
Binded Focusable property to focus to the programatically selected item .
Binded IsSelected property to select the programatically selected item .
For Event="Selected" created an event handler. In this function, I am calling BringIntoView function on the item.
This event is triggered for all the items in the list except for the programatically selected first child item.