Welcome Guest Search | Active Topics | Sign In | Register

Enable EO control in javascript Options
quercis
Posted: Friday, October 9, 2009 2:18:44 AM
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
eo_support
Posted: Friday, October 9, 2009 9:17:32 AM
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!
quercis
Posted: Friday, October 9, 2009 10:42:21 AM
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
eo_support
Posted: Friday, October 9, 2009 10:50:00 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.