Hi,
I am trying to set the DatePicker selected date from the client side. However the javascript I used doesn't really work. This is what I used.
var newMinDate = null;
var startCalendar = $find(startDateId);
if (startCalendar != null)
{
if (newMinDate!=null)
{
startCalendar.selectDate(newMinDate,true);
startCalendar.set_minDate(newMinDate);
}
if (newMaxDate!=null)
startCalendar.set_maxDate(newMaxDate);
}
The bold line breaks, I am not able to find good documentation on what client API method, properties provided from the online doc. please let me know what method should I call to set the textbox value and calendar selected date to the date I want from client side.
Chris
I am trying to set the DatePicker selected date from the client side. However the javascript I used doesn't really work. This is what I used.
var newMinDate = null;
var startCalendar = $find(startDateId);
if (startCalendar != null)
{
if (newMinDate!=null)
{
startCalendar.selectDate(newMinDate,true);
startCalendar.set_minDate(newMinDate);
}
if (newMaxDate!=null)
startCalendar.set_maxDate(newMaxDate);
}
The bold line breaks, I am not able to find good documentation on what client API method, properties provided from the online doc. please let me know what method should I call to set the textbox value and calendar selected date to the date I want from client side.
Chris