Applied wrong ItemContainerStyleSelector

2 posts, 0 answers
  1. 상오
    상오 avatar
    1 posts
    Member since:
    Jan 2015

    Posted 14 Jan 2015 Link to this post


    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.


    I use the version 2014.2.617.1050(Runtime Version v4.0.30319)
  2. Martin Ivanov
    Martin Ivanov avatar
    1452 posts

    Posted 19 Jan 2015 Link to this post


    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.


    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.

Back to Top