How can I set the current date in the WebDateChooser with JavaScript?
Why am using JavaScript? I use javascript to enable or disable the control dependent of the selected value from an other control.
The code bellow doesn't work. The control appears empty on the screen.
oDateChooser.setValue(Date());
Do you have any idea?
Thanks for your solution, now it works :)
HI,
I used the SetValue method;
Here is my code snippet - this worked
function WebDateChooser1_InitializeDateChooser(oDateChooser){ //Add code to handle your event here. var dt = new Date(); oDateChooser.setValue(dt);}
Here is a help link to the Csom for WebDateChooser:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/WebDateChooser_Object_CSOM.html