简体   繁体   中英

Display only chosen dates in datepicker

I have history window with date picker but there's some days without any record in DataBase, I want to disable this days in the datepicker. Any ideas please. Thank you

You can use the DayRender event handler for disabling the dates in the datepicker. Refer this sample site to know.

Have a look at the DatePicker.BlackoutDates Property. Dates in this collection will appear as disabled on the drop-down calendar.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM