Disable the control

28 Mar 20221 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.

@Html.EJS().DateRangePicker("daterangepicker").Enabled("false").Render()