Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
WebDateEdit losing manually entered dates
posted

 Hi,

 I have a problem with the WebDateEdit, when I manually enter a new date into it (it had a previous date value), and then click off and then back onto the date edit, it restores the value the control contained before I manually edited it. When we programatically set the value of the control, that seems to work fine.

 Any ideas what could be happening here? We are using v8.1 of that control (wasn't a problem till we upgraded from an older version of your control).

 Thanks.

Parents
No Data
Reply
  • 30
    posted

     I managed to figure out the overlying reason why this is happening: we overloaded the render and added some javascript to the Initialize for the WebDateTimeEdit.

      It looks like so:

    if (!String.IsNullOrEmpty(this.ClientSideEvents.Initialize))
                        this.ClientSideEvents.Initialize += " try{InitFmDirty('igedit$" + this.ClientID + "');}catch(e){}";
                    else
                        this.ClientSideEvents.Initialize = "try{InitFmDirty('igedit$" + this.ClientID + "');}catch(e){}";

     Why would this be causing such a problem?

Children
No Data