Manipulation of GalleryItem

3 posts, 0 answers
  1. Yoan
    Yoan avatar
    17 posts
    Member since:
    Jan 2012

    Posted 23 Apr 2012 Link to this post

    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. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 26 Apr 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Yoan
    Yoan avatar
    17 posts
    Member since:
    Jan 2012

    Posted 26 Apr 2012 Link to this post

    Hello Viktor,

    The approach works perfectly , thanks.

    Regards,
    Yoan
Back to Top