I have 2 WebDateTimeEdit controls on my control. When the user sets the first control initially I want to default in the same value into the second datetimeedit control. I can set the value property of the second control but I can't get it to display the new value on the control.
Here is my clientside script which is fired in the controls ValueChange event. What am I doing wrong?
var toDate = document.getElementById(wdtToDate.ClientID); var fromDateEdit = document.getElementById(wdtFromDate.ClientID); if (toDate.value == '') { toDate.value = fromDateEdit.value; toDate.innerText = fromDateEdit.value; }
The value is getting set but nothing is displaying in the ToDate WebDateTimeEdit control. So I tried setting innerText also, it didn't work.
You should use our Client Side Object Model to accomplish this. Take a look at the following post:
http://forums.infragistics.com/forums/p/5088/23604.aspx#23604