Disable dates conditionally with Asp.net Ajax Calendar Extender

蓝咒 提交于 2019-12-13 03:22:31

问题


If you have used Calendar Extender, i am looking for ways to disable dates based on selection from another calendar selected date. In a project management application there are end and start dates, i am looking for ways to validate these on client. Someways would require postback which i am not willing to perform. There seems to be StartDate and EndDate properties for the calendar on the server, but does not seem to have any client side counterparts. Have you got any ideas how i can perform this.


回答1:


You can overwrite _cell_onclick javascript event to show an alert if a wrong date is chosen depending on the selected date in the other calendar.

Here is an example: Ajaxtoolkit Calendar Extender close button and date restriction




回答2:


I know it's too late to reply this post but it my help someone

Disable dates in Ajax Calendar Extender with different dates examples



来源:https://stackoverflow.com/questions/8711096/disable-dates-conditionally-with-asp-net-ajax-calendar-extender

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!