|
Rank: Newbie Groups: Member
Joined: 9/4/2009 Posts: 2
|
Hello,
on an aspx i have a DatePicker and I disable it initially.
What I want to do (and haven't been succesfull in doing so so far) enable the control in a javascript.
Is this possible? I tried to set the disabled property to '' for the document.getElementByID('datepicker1') and tried to find the correct property for the eo_GetObject('datepicker1').
Any help?
Kind regards, Quercis
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
There isn't a direct way to do this. However you can place the DatePicker inside a CallbackPanel, then trigger the CallbackPanel and update the DatePicker's Enabled property from your server side code. Please let us know if this works for you.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 9/4/2009 Posts: 2
|
Hi,
i'm trying to let the user edit as much things as possible (order editing) without having to submit.
Isn't the solution you are proposing using a submit? If so, the solution is not applicable for me.
With kind regards, Quercis
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
It does. But because it does through AJAX with a CallbackPanel (or you can also use ASP.NET AJAX UpdatePanel), user won't see a full page reload. Another workaround is to put the DatePicker inside a DIV and then dynamically show/hide it.
Thanks!
|
|