Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
Free Tools
Support and Learning
Productivity and Design Tools
Hi,
I want to connect two item on the diagram programmatically. I am not sure that the procedure is correct or not?
1) set a ID (name)
2) search diagram.Shap array and find two ID
3) make connection with source and target index based on ID <name> found in step 2
Thank you.
var source =
this
.radDiagram1.Shapes.Where(s => s.Name ==
"Source"
).FirstOrDefault();
var target =
"Target"
RadDiagramConnection polylineConnection =
new
RadDiagramConnection() { Name =
"connection1"
};
polylineConnection.Source = source;
polylineConnection.Target = target;
polylineConnection.ConnectionType = Telerik.Windows.Diagrams.Core.ConnectionType.Polyline;
radDiagram1.AddShape(polylineConnection);
Dear Hristo,
It works!