Steps to reproduce:
1. Open the Demo application and choose one of the diagram's examples.
2. Select one shape and rotate it at 180 rotation angle.
3. Change the width:
Expected: the connections and selection rectangle are properly adjusted according to the new size
Actual: the connections are not properly rendered and selection rectangle is also not updated
Good-day,
I am trying to export a RadDiagram to an SVG Image, I would like to find out if it is possible to do so and how to do it.
I look forward to hearing from you.
Regards,
Tanaka
Hello,
I'm contacting to you regarding the RadDiagram in WinForms. Currently I have an issue with the layout by using the AStartRouter (see attached picture). Please find below the code used to setup the router:
this.diagram.RoutingService.Router = new Telerik.Windows.Diagrams.Core.AStarRouter(this.diagram.DiagramElement)
{
AvoidShapes = true,
WallOptimization = true
};
this.diagram.RoutingService.AutoUpdate = true;
this.diagram.RouteConnections = true;
Thanks for your help.
Regards
To reproduce: create a RadDiagram with several shapes. Try to zoom and pan with the gesture. Sometimes the shapes jumps.
To reproduce: Bind using a binding source: DataSet ds = new DataSet(); ds.Tables.Add(shapesTable); ds.Tables.Add(connectionsTable); BindingSource bindingSource1 = new BindingSource { DataSource = ds }; radDiagram1.DiagramElement.DataLayer.DataSource = bindingSource1; Workaround: Bind directly: DataSet ds = new DataSet(); ds.Tables.Add(shapesTable); ds.Tables.Add(connectionsTable); radDiagram1.DiagramElement.DataLayer.DataSource = ds;
By using these events the user will be able to easily cancel moving of a shape in certain conditions.
http://docs.telerik.com/devtools/wpf/controls/raddiagram/extensions/thumbnail
Please refer to the attached gif file illustrating how to reproduce the problem. Workaround: use the following approach for exporting to an image: private void radButton1_Click(object sender, EventArgs e) { RadScrollBarElement horizontalScrollBar = this.radDiagram1.DiagramElement.Children[1] as RadScrollBarElement; RadScrollBarElement verticalScrollBar = this.radDiagram1.DiagramElement.Children[2] as RadScrollBarElement; this.Size = new System.Drawing.Size(this.Size.Width + (horizontalScrollBar.Maximum - this.radDiagram1.Size.Width), this.Size.Height + (verticalScrollBar.Maximum + 1 - this.radDiagram1.Height)); Application.DoEvents(); Bitmap bmp = new Bitmap(radDiagram1.Width, radDiagram1.Height, PixelFormat.Format32bppArgb); this.radDiagram1.DrawToBitmap(bmp, new Rectangle(0, 0, radDiagram1.Width, radDiagram1.Height)); bmp.Save(@"..\..\test2.bmp"); System.Diagnostics.Process.Start(@"..\..\test2.bmp"); }