Search results

Disable the DateRangePicker Component in ASP.NET MVC DateRangePicker control

14 Apr 2021 / 1 minute to read

DateRangePicker can be inactivated on a page, by setting enabled value as false that will disable the control completely from all the user interactions including in the form post. The following example demonstrates the disabled control.

razor
Copied to clipboard
@Html.EJS().DateRangePicker("daterangepicker").Enabled("false").Render()