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.
Telerik
Build great .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
Testing & Mocking
Debugging
Build JavaScript UI
Javascript
AI for Developers & IT
Ensure AI program success
AI Coding
Additional Tools
Enhance the developer and designer experience
UI/UX Tools
Free Tools
CMS
Support and Learning
Docs & Resources
Productivity and Design Tools
Hi Kevin,
The Diagram has an OnShapeClick event that you can use to navigate to a URL programmatically with the NavigationManager. Below is an example. For the time being, a separate element inside a Diagram shape cannot be clickable on its own. The reason is that the Diagram renders as an SVG image, so it's not possible to insert interactive Blazor elements or components inside it.
@inject NavigationManager NavigationManager <TelerikDiagram Height="360px" OnShapeClick="@OnDiagramShapeClick"> <DiagramLayout Type="@DiagramLayoutType.Tree" /> <DiagramShapes> <DiagramShape Id="shape1"> <DiagramShapeContent Text="Home"> </DiagramShapeContent> </DiagramShape> <DiagramShape Id="shape2"> <DiagramShapeContent Text="Counter"> </DiagramShapeContent> </DiagramShape> <DiagramShape Id="shape3"> <DiagramShapeContent Text="Weather"> </DiagramShapeContent> </DiagramShape> </DiagramShapes> <DiagramConnections> <DiagramConnection FromId="shape1" ToId="shape2" /> <DiagramConnection FromId="shape1" ToId="shape3" /> </DiagramConnections> </TelerikDiagram> @code { private readonly Dictionary<string, string> DiagramShapeUrls = new() { { "shape1", "/" }, { "shape2", "/counter" }, { "shape3", "/weather" } }; private void OnDiagramShapeClick(DiagramShapeClickEventArgs args) { if (DiagramShapeUrls.ContainsKey(args.Id)) { NavigationManager.NavigateTo(DiagramShapeUrls[args.Id]); } } }
Regards, Dimo Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.