Applied wrong ItemContainerStyleSelector

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

    Posted 14 Jan 2015 Link to this post

    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)
  2. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 19 Jan 2015 Link to this post

    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.

     
  3. DevCraft banner
Back to Top