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

Manipulation of GalleryItem

2 Answers 80 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Yoan
Top achievements
Rank 1
Yoan asked on 23 Apr 2012, 10:05 AM
Hello everybody , 

I am trying to use the example from the demos of the Diagram control. What I need is kind of designer like those one used in the DesignToolbox. I managed to edit it in a pretty good way so it is useful , but I have problems when I am trying to manipulate the gallery items. For example i want to have 5 different items in the menu from where to drag , with different shape and color and text inside. I succeeded in changing the shape and the content , I change them in a RadDiagramShape which I add to the GalleryItem , but I can not  change the color of the shape and it is very important for me to change it , I tried with the standart properties which I found in the class but there was no result. I hope I have described my problem fully and understandable and you will give me a solution in short time, thanks in advance.

Regards,
Yoan

2 Answers, 1 is accepted

Sort by
0
Viktor Tsvetkov
Telerik team
answered on 26 Apr 2012, 09:59 AM
Hello Yoan,

In order to change the color of the shape you should change its Background but currently there is a bug in the Toolbox so you cannot directly set a value to the Background property and you should create a Style which sets this property and apply it to all shapes. Could you please try this approach and tell me if it works for you? Actually for the coming Q2 we will bring a brand new RadDiagramToolbox control which you will be able to use in such scenarios.

Kind regards,
Viktor Tsvetkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Yoan
Top achievements
Rank 1
answered on 26 Apr 2012, 11:21 AM
Hello Viktor,

The approach works perfectly , thanks.

Regards,
Yoan
Tags
Diagram
Asked by
Yoan
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
Yoan
Top achievements
Rank 1
Share this question
or