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

toolbox populating shapes

3 Answers 92 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Rick Mueller
Top achievements
Rank 1
Rick Mueller asked on 18 Apr 2012, 08:46 PM
Hello,
A couple of questions.
1. I have Diagramshapes inside wrappanel>Listbox>PanelgroupItem>PanelGroup>DockingPanel>etc
I hope you get the idea. It works ok,, but I tried to apply drag and drop from the listbox to Diagram control. No luck.
2. I went to plan "b" I'm using the toolbox from the diagram.Features .dll.. it Poplates the amount of items, but no shapes are visible? any thoughts?
<toolkit:ToolboxItem>
                                    <StackPanel>
                                        <telerik:RadDiagramShape Geometry="{telerik:CommonShape ShapeType=RectangleShape}" Padding="5" Height="40" Width="40" Background="Black" BorderBrush="AntiqueWhite"/>
                                        <TextBlock Text="4 Inch Deep" Margin="2" Width="70" Height="22" FontSize="10" />
                                    </StackPanel>
                                </toolkit:ToolboxItem>

Not enough material to read up on to figure this out.
Since drag n drop is big part of populating the Diagram control.. It should be included in the online docs???

Thank you
Rick

3 Answers, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 19 Apr 2012, 09:13 AM
Hello Rick,

 The diagram control has built-in support for handling dropped data of type SerializationInfo. If you want to drop a shape to the diagram, you would have to set the payload (the Data) of the drag-drop to an instance of SerialziationInfo, which is returned by the Serialize() method of the RadDiagramShape. For Q2 2012, we are planning to extend the number of supported drop data formats.

Kind regards,
Alex Fidanov
the Telerik team

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

0
Rick Mueller
Top achievements
Rank 1
answered on 19 Apr 2012, 02:46 PM
Alex,
Thank you for your response.

Please share any links/blogs etc.
So I can read up on this and how it is achieved.

Regards,
Rick
0
Alex Fidanov
Telerik team
answered on 21 Apr 2012, 08:07 AM
Hello Rick,

 We are going to upload the new help articles in our online help in the diagram section with the Q2 2012 release.

Kind regards,
Alex Fidanov
the Telerik team

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

Tags
Diagram
Asked by
Rick Mueller
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Rick Mueller
Top achievements
Rank 1
Share this question
or