简体   繁体   English

仅显示日期选择器中的选定日期

[英]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. 您可以使用DayRender事件处理程序禁用日期选择器中的日期。 Refer this sample site to know. 请参阅此示例站点以了解。

Have a look at the DatePicker.BlackoutDates Property. 看一下DatePicker.BlackoutDates属性。 Dates in this collection will appear as disabled on the drop-down calendar. 该集合中的日期将在下拉日历上显示为禁用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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