After expand node icons not correct show

6 posts, 1 answers
  1. Steve
    Steve avatar
    50 posts
    Member since:
    Apr 2013

    Posted 14 Nov 2013 Link to this post

    Hi,

    In ClassDiagram (Telerik demo) after expand node solution explorer treeview icons not correct show, Please see attached image.

    Thanks in advance.
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 19 Nov 2013 Link to this post

    Hello Steve,

    Thank you for noticing this issue. We will investigate it and will provide further information whether this is a TreeView specific issue or an issue in the Application logic of the Class Diagram example.
    We updated your telerik account points as a thanks for your cooperation.

    Regards,
    Petar Mladenov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Steve
    Steve avatar
    50 posts
    Member since:
    Apr 2013

    Posted 19 Nov 2013 Link to this post

    Hello Petar, Thanks for your reply, Is this bug in the TreeView will be fixed?

  5. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 22 Nov 2013 Link to this post

    Hi Steve,

    This issue is previously logged in our system under the name:
    TreeView: The DefaultImageSource and ExpandedImageSource properties don't work in virtualized tree

    If you don not need virtualization (your tree is small and you don't need performance optimization) you can turn it OFF (IsVirtualizing = False) and this will work properly. On the other hand, there is an elegant workaround in MVVM scenarios - do not use these image properties and add Image in the ItemTemplate of the RadTreeView. Then bind its Source to the IsExpanded property and use converter to selected different image sources based on the value of the IsExpanded property. 
    We think this issue has little priority due to the workaround possible. Furthermore we have to admit that exposing such image properties in our RadTreeView is a mistake in our design. The usual way for such customizations should be ViewModels + ItemTemplates as suggested above.



    Regards,
    Petar Mladenov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Steve
    Steve avatar
    50 posts
    Member since:
    Apr 2013

    Posted 23 Nov 2013 Link to this post

    Hello Petar, Thank you for your thorough explanation,

    My tree is very large and need performance optimization, I'll wait until the problem is solved.
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 26 Nov 2013 Link to this post

    Hello Steve,

    Just to clarify once again. Performance is optimized in the RadTreeView when the Virtualization is turned ON. But it is perfectly suitable for you to workaround this bug with ItemTemplates with Image and ViewModels containing the SourceUri for the Images. This will work with Virtualization turned ON.

    Regards,
    Petar Mladenov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WPF is Visual Studio 2017 Ready