-
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
<div class="dx-fieldset"> <div class="dx-field"> <div class="dx-field-label">Date</div> <div class="dx-field-value"> @(Html.DevExtreme().DateBox() .InputAttr("aria-label", "Date") .Type(DateBoxType.Date) .Value(DateTime.Now) ) </div> </div> <div class="dx-field"> <div class="dx-field-label">Time</div> <div class="dx-field-value"> @(Html.DevExtreme().DateBox() .InputAttr("aria-label", "Time") .Type(DateBoxType.Time) .Value(DateTime.Now) ) </div> </div> <div class="dx-field"> <div class="dx-field-label">Date and time</div> <div class="dx-field-value"> @(Html.DevExtreme().DateBox() .InputAttr("aria-label", "Date And Time") .Type(DateBoxType.DateTime) .Value(DateTime.Now) ) </div> </div> <div class="dx-field"> <div class="dx-field-label">Custom format</div> <div class="dx-field-value"> @(Html.DevExtreme().DateBox() .InputAttr("aria-label", "Custom Format") .DisplayFormat("EEEE, MMM dd") .Value(DateTime.Now) ) </div> </div> <div class="dx-field"> <div class="dx-field-label">Date picker</div> <div class="dx-field-value"> @(Html.DevExtreme().DateBox() .InputAttr("aria-label", "Picker") .PickerType(DateBoxPickerType.Rollers) .Value(DateTime.Now) ) </div> </div> <div class="dx-field"> <div class="dx-field-label">Clear button</div> <div class="dx-field-value"> @(Html.DevExtreme().DateBox() .InputAttr("aria-label", "Clear") .Type(DateBoxType.Time) .ShowClearButton(true) .Value(new DateTime(2016, 12, 1, 6, 0, 0)) ) </div> </div> <div class="dx-field"> <div class="dx-field-label">Disabled</div> <div class="dx-field-value"> @(Html.DevExtreme().DateBox() .InputAttr("aria-label", "Disabled") .Type(DateBoxType.DateTime) .Value(DateTime.Now) .Disabled(true) ) </div> </div> <div class="dx-field"> <div class="dx-field-label">Disable certain dates</div> <div class="dx-field-value"> @(Html.DevExtreme().DateBox() .InputAttr("aria-label", "Disabled") .Type(DateBoxType.Date) .Value(new DateTime(2017, 1, 3)) .PickerType(DateBoxPickerType.Calendar) .DisabledDates(new[] { new DateTime(2017, 1, 1), new DateTime(2017, 1, 2), new DateTime(2017, 1, 16), new DateTime(2017, 2, 20), new DateTime(2017, 5, 29), new DateTime(2017, 7, 4), new DateTime(2017, 9, 4), new DateTime(2017, 10, 9), new DateTime(2017, 11, 11), new DateTime(2017, 11, 23), new DateTime(2017, 12, 25) }) ) </div> </div></div><div class="dx-fieldset"> <div class="dx-fieldset-header">Event Handling</div> <div class="dx-field"> <div class="dx-field-label">Set Birthday</div> <div class="dx-field-value"> @(Html.DevExtreme().DateBox() .InputAttr("aria-label", "Birth Date") .ApplyValueMode(EditorApplyValueMode.UseButtons) .Max(DateTime.Now) .Min(new DateTime(1900, 1, 1)) .Value(new DateTime(1981, 4, 27)) .OnValueChanged("dateBox_valueChanged") ) </div> </div> <div class="dx-field"> <div class="dx-field-value"> Your age is <div id="age"></div> </div> </div></div><script> function dateDiff(secondDate) { var diffInDay = Math.floor(Math.abs((new Date() - secondDate) / (24 * 60 * 60 * 1000))); return $("#age").text(diffInDay + " days"); } function dateBox_valueChanged(data) { dateDiff(new Date(data.value)); } $(function() { dateDiff(new Date(1981, 3, 27)); });</script>xxxxxxxxxxusing Microsoft.AspNetCore.Mvc;namespace DevExtreme.NETCore.Demos.Controllers { public class DateBoxController : Controller { public ActionResult Overview() { return View(); } }}xxxxxxxxxx#age { display: inline-block;}This demo illustrates the following DateBox properties:
-
value
A value the DateBox displays. -
type
Specifies whether the DateBox allows users to select one of the following types:-
"date"
Users can select the date from the calendar, or they can type in their own date value (in the required format). -
"time"
Users can select a time from a range between 12:00 AM and 11:30 PM at 30-minute intervals, or they can type in their own time value (in the required format). Specify the interval property to set the time interval. -
"datetime"
Users can select the date from the calendar and the time from the spin and dropdown editors. They can also choose the Today button.
-
-
displayFormat
A date/time display format. You can use one of the predefined formats or specify a custom format. This demo illustrates the latter. -
pickerType
Specifies the type of UI used to select a date or time. This demo shows how to change a calendar to a roller date picker. -
showClearButton
Specifies whether to display the button that clears the DateBox value. -
disabled
Specifies whether the DateBox responds to user interaction. -
disabledDates
Dates that are not available for selection. -
applyValueMode
Defines whether the selected value applies instantly or after a user clicks the Apply button.
To get started with the DevExtreme DateBox component, refer to the following tutorial for step-by-step instructions: Getting Started with DateBox.