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

After expand node icons not correct show

5 Answers 50 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 14 Nov 2013, 12:57 PM
Hi,

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

Thanks in advance.

5 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 19 Nov 2013, 09:51 AM
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 >>
0
Steve
Top achievements
Rank 1
answered on 19 Nov 2013, 12:26 PM
Hello Petar, Thanks for your reply, Is this bug in the TreeView will be fixed?

0
Accepted
Petar Mladenov
Telerik team
answered on 22 Nov 2013, 12:10 PM
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 >>
0
Steve
Top achievements
Rank 1
answered on 23 Nov 2013, 08:25 AM
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.
0
Petar Mladenov
Telerik team
answered on 26 Nov 2013, 12:39 PM
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 >>
Tags
TreeView
Asked by
Steve
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Steve
Top achievements
Rank 1
Share this question
or