Pull down to refresh...
Release to refresh...
Refreshing...
-
Data Grids / Data Management
-
Data Grid
- Overview
-
Data Binding
-
Filtering
- Sorting
-
Editing
-
Grouping
-
Selection
- Focused Row
- Paging
-
Scrolling
-
Columns
-
Master-Detail
-
Data Summaries
-
Drag & Drop
-
Export to PDF
-
Export to Excel
- Appearance
-
Customization
- State Persistence
-
Adaptability
-
Keyboard Navigation
- Right-To-Left Support
-
Tree List
- Overview
-
Data Binding
-
Filtering
- Sorting
-
Editing
-
Selection
- Focused Row
- Paging
-
Columns
- Drag & Drop
- State Persistence
- Adaptability
-
Keyboard Navigation
-
Card View
-
Pivot Grid
- Overview
-
Data Binding
-
Field Management
-
Data Summaries
- Drill Down
- Filtering
-
Scrolling
-
Export to Excel
- Chart Integration
- Customization
- State Persistence
-
Filter Builder
-
-
Data Visualization
-
Charts
- Overview
-
Data Binding
-
Common Concepts
-
Axis
-
Aggregation
-
Tooltips
-
Selection
-
Customization
-
Zooming
-
Export
-
-
Area Charts
-
Bar Charts
- Bullet Charts
-
Doughnut Charts
-
Financial Charts
-
Funnel and Pyramid Charts
-
Line Charts
- Pareto Chart
-
Pie Charts
-
Point Charts
-
Polar and Radar Charts
-
Range Charts
- Sankey Chart
-
Sparkline Charts
-
Tree Map
-
Gauges
- Overview
-
Runtime update
-
Bar Gauge
-
Circular Gauge
-
Linear Gauge
-
Diagram
- Overview
-
Data Binding
-
Featured Shapes
-
Custom Shapes
-
Document Capabilities
-
User Interaction
- UI Customization
- Adaptability
-
-
Scheduling / Planning
-
Scheduler
- Overview
-
Data Binding
-
Views
-
Appointments
-
Timetable
- Editing
-
Grouping
- Virtual Scrolling
- Drag & Drop
-
Customization
- Adaptability
-
Gantt
- Overview
- Data Binding
-
Filtering
- Sorting
- Strip Lines
- Export to PDF
- Validation
-
Customization
-
-
Reporting
-
AI-powered Extensions
-
Interaction
-
Report Types
-
Data binding
-
Real-life Reports
-
Layout Features
-
Report Controls
-
Web-specific Features
-
-
Rich Text Editor
- Overview
- Load/Save
- Document Protection
-
Templates
- Autocorrect
-
Customization
- Simple View
-
Spreadsheet
- Overview
-
Open a Document
- Export And Printing
-
Features
-
UI Customization
-
Messaging
-
WYSIWYG Editor
-
Forms
-
Data Editors
- Overview
-
Common Concepts
-
Calendar
- Check Box
- Color Box
- Date Box
-
Date Range Box
-
Number Box
- Radio Group
-
Range Selector
- Range Slider
- Slider
- Speech To Text
- Switch
- Text Area
- Text Box
-
Drop-Downs
- Autocomplete
-
Drop Down Box
-
Select Box
-
Tag Box
-
Lookup
-
Buttons
-
File Upload / File Management
-
File Manager
- Overview
-
File System Types
-
Customization
-
File Uploader
-
-
Popup and Notifications
-
Navigation
- Overview
- Accordion
-
Context Menu
-
Menu
- Multi View
-
Drawer
-
Tab Panel
-
Tabs
-
Toolbar
-
Stepper
- Pagination
-
List
-
Tree View
- Right-to-Left Support
-
Layout
-
Tile View
- Splitter
-
Gallery
- Scroll View
-
-
Interactive Wrappers
-
Sortable
- Resizable
-
-
Progress Indicators
-
Maps
- Overview
-
Map
-
Vector Map
-
Data Binding
- Multiple Layers
-
Markers
- Legend
-
Zooming and Panning
-
Customization
-
-
Localization
Related Demos:
Your search did not match any results.
Loading...
Diagram - UI Customization
The following methods allow you to customize the Diagram component's UI elements:
Backend API
x
@(Html.DevExtreme().Diagram() .ID("diagram") .ContextMenu(cm => cm .Enabled(true) .Commands(new[] { DiagramCommand.BringToFront, DiagramCommand.SendToBack, DiagramCommand.Lock, DiagramCommand.Unlock }) ) .ContextToolbox(ct => ct .Enabled(true) .Category(DiagramShapeCategory.Flowchart) .ShapeIconsPerRow(5) .Width(200) ) .PropertiesPanel(pp => pp .Visibility(DiagramPanelVisibility.Visible) .Tabs(t => { t.Add() .Groups(g => { g.Add() .Title("Page Properties") .Commands(new[] { DiagramCommand.PageSize, DiagramCommand.PageOrientation, DiagramCommand.PageColor }); }); }) ) .HistoryToolbar(tb => tb .Visible(false) ) .ViewToolbar(tb => tb .Visible(true) ) .MainToolbar(tb => tb .Visible(true) .Commands(cmds => { cmds.Add().Name(DiagramCommand.Undo); cmds.Add().Name(DiagramCommand.Redo); cmds.Add().Name(DiagramCommand.Separator); cmds.Add().Name(DiagramCommand.FontName); cmds.Add().Name(DiagramCommand.FontSize); cmds.Add().Name(DiagramCommand.Separator); cmds.Add().Name(DiagramCommand.Bold); cmds.Add().Name(DiagramCommand.Italic); cmds.Add().Name(DiagramCommand.Underline); cmds.Add().Name(DiagramCommand.Separator); cmds.Add().Name(DiagramCommand.FontColor); cmds.Add().Name(DiagramCommand.LineColor); cmds.Add().Name(DiagramCommand.FillColor); cmds.Add().Name(DiagramCommand.Separator); cmds.Add().Name("clear").Text("Clear Diagram").Icon("clearsquare"); }) ) .Toolbox(tb => tb .Visibility(DiagramPanelVisibility.Visible) .Groups(g => { g.Add().Category(DiagramShapeCategory.General).Title("General"); g.Add().Category(DiagramShapeCategory.Flowchart).Title("Flowchart").Expanded(true); }) .ShowSearch(false) .ShapeIconsPerRow(4) .Width(220) ) .OnCustomCommand(@<text> function(e) { if(e.name === "clear") { var result = DevExpress.ui.dialog.confirm("Are you sure you want to clear the diagram? This action cannot be undone.", "Warning"); result.done( function(dialogResult) { if(dialogResult) { e.component.import(""); } } ); } } </text>))<script type="text/javascript"> $(function () { $.ajax({ url: "@Url.Content("~/SampleData/diagram-flow.json")", dataType: "text", success: function(data) { $("#diagram").dxDiagram("instance").import(data); } }); });</script>xxxxxxxxxxusing DevExtreme.NETCore.Demos.Models.SampleData;using Microsoft.AspNetCore.Mvc;namespace DevExtreme.NETCore.Demos.Controllers { public class DiagramController : Controller { public IActionResult UICustomization() { return View(); } }}xxxxxxxxxx#diagram { height: 900px;}