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

Applied wrong ItemContainerStyleSelector

1 Answer 54 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
상오
Top achievements
Rank 1
상오 asked on 14 Jan 2015, 09:30 AM
Hello

When I used telerik RadTreeView, have seen strange things.
I used ItemContainerStyleSelector, because change tree item background.
this is fine.

but if set "IsVirtualizing = true", "ItemContainerStyleSelector" was applied style at another tree item.

why?

I use the version 2014.2.617.1050(Runtime Version v4.0.30319)

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 19 Jan 2015, 07:50 AM
Hello,

Without your implementation I cannot be sure what is causing the reported behavior. However, keep in mind that when the UI Virtualization of RadTreeView is enabled only the containers of the RadTreeViewItems that are in the view port are generated and added in the visual tree. In other words if the item is not visible on the screen it does not exist in the visual tree of the application. In some scenarios this leads to a different behavior than the case where the tree is not virtualized.

If you give me more information about your implementation, like code or a an isolated project, I can test it on my side and investigate what is causing this behavior.

Regards,
Martin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
상오
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or