禁用与Asp.net阿贾克斯日历扩展有条件日期 [英] Disable dates conditionally with Asp.net Ajax Calendar Extender

查看:172
本文介绍了禁用与Asp.net阿贾克斯日历扩展有条件日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您已经使用日历扩展,我在寻找方法根据从其他的日历中选择日期选择禁用日期。在项目管理中的应用有结束和开始日期,我寻找各种方法来验证这些客户端。 Someways需要回传,我很不甘心执行。似乎有开始日期和结束日期属性服务器上的日历,但似乎并没有任何客户端的同行。你有什么想法如何,我可以执行此操作。

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.

推荐答案

您可以覆盖_cell_onclick JavaScript事件显示一个警告,如果取决于其他日历选定的日期选择了错误的日期。

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.

下面是一个例子: Ajaxtoolkit日历扩展关闭按钮和日期限制

这篇关于禁用与Asp.net阿贾克斯日历扩展有条件日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆