Using the client API, I'd like to be able to do this:
picker.set_selectedDate(new Date());
Without the valueChanged event handler firing, is there another way in the API to do this? Again this is all client-side JavaScript.
Thanks.
Using the client API, I'd like to be able to do this:
picker.set_selectedDate(new Date());
Without the valueChanged event handler firing, is there another way in the API to do this? Again this is all client-side JavaScript.
Thanks.
You can remove the event handler from the datepicker and then set the date, like this:
this will prevent the event from being fired, if you need it you can add it again after. The DateSelected is the name of the event that you have set on the control, see below for a small example