[英]Telerik RadCalendar ASP.NET control reset date
我使用Telerik RadCalendar ASP.NET控件。 如何在代碼中重置所選日期? (設置未選擇日期)
從他們的網站: 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方法中。
var selectedDates = get_selectedDates();
unselectDates(selectedDates);
如果您不知道選擇了什么日期,則可以重新加載日歷。
如果您想清除選擇服務器端,那么這應該起作用:
RadCalendarObject.SelectedDates.Clear();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.