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

Change apperance of TreeView (Specific example)

2 Answers 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
ThomasBem
Top achievements
Rank 1
ThomasBem asked on 20 May 2015, 06:47 AM

Is it possible to make the RadTreeView control behave / look like the attached image. The styling of each different element shouldnt be any problem, they are very simple. But i'm unsure if its possible to achieve the overall look.

I have a collection of Product Lines, each Product Line has a collection of one or more Product Familys, and each Product Family has a collection of Products.

Product Lines shall stack up vertically.

Product Familys shall be added to the right of its Product Line, and expand vertically.

Products shall be added to the right of its Product Family and grow horisontally.

 

Is this possible with RadTreeView? If not is there any other control that would be more suitable for this task?

Best regards,
Thomas

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 22 May 2015, 03:10 PM
Hi Thomas,

The described layout is not supported by RadTreeView. However, it should be possible to implement it with custom styles (using the ItemContainerStyleSelector of RadTreeView), but such effect will require heavy customization with rotations of the items and their ItemsPanels.

You can consider using the RadDiagram control instead. You can implement custom shapes or use the default one with Null Geometry to create the product items. Then you can implement logic for positioning the elements in the diagram control. You can also take a look at our demos and SDK examples. Please check out the diagram and let me know if it works for you.

Regards,
Martin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
ThomasBem
Top achievements
Rank 1
answered on 22 May 2015, 03:43 PM

Thanks for getting back to me so quickly!

After a little more testing on our own we decided to move away from using RadTreeView. We briefly considered implementing something using RadDiagram, as we have used that previously with great sucess. But in the end we decided to go back to basics and just implement it using standard Silverlight controls (Grids, Borders, Stackpanels, Textblocks etc).

It turned out pretty good. So we are happy with our current solution :)

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