Telerik RadCalendar ASP.NET 控件重置日期 [英] Telerik RadCalendar ASP.NET control reset date

查看:69
本文介绍了Telerik RadCalendar ASP.NET 控件重置日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Telerik RadCalendar ASP.NET 控件.我如何在代码中重置选定的日期?(不设置选择日期)

I use Telerik RadCalendar ASP.NET control. How I can in code reset selected date? (Set no selected Date)

推荐答案

来自他们的网站:http://demos.telerik.com/aspnet-ajax/calendar/examples/programming/clientsideapi/defaultcs.aspx

unselectDate(date); //Takes a triplet representation of a date and if valid deselects it in the calendar.
unselectDates(dates);  //Takes an array of triplets representing dates and if valid deselects them in the calendar. 

首先你可以找到用get_selectedDates()选择的日期然后将它们放入 unselect 方法中.

First you can find what dates are selected with get_selectedDates() Then put them in the unselect method.

var selectedDates = get_selectedDates();
unselectDates(selectedDates);

如果您不知道选择了哪些日期,您可以重新加载日历.

If you dont know what dates are selected maybe you can reload the calendar.

这篇关于Telerik RadCalendar ASP.NET 控件重置日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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