Welcome Guest Search | Active Topics | Sign In | Register

Trying to enable/disable EO.DatePicker with Javascript Options
Steve
Posted: Friday, October 12, 2007 6:21:45 AM
Rank: Newbie
Groups: Member

Joined: 10/12/2007
Posts: 1
All web controls can be enabled/disabled in Javascript through .disabled property.
It does not seem to work with EO.Web controls.
I am developing an application were customer application can be previewed then user can click on link to swtich to edit mode and the controls are enabled using Javascript.
I'm trying to eliminate postbacks - except for when they finallize changes.
eo_support
Posted: Friday, October 12, 2007 6:31:22 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,083
Hi Steve,

No. Not all web controls can be enabled/disabled in JavaScript. .disabled is a DHTML property, it disables a certain DHTML element. It just happens that most web controls are simple enough that you can disable them by disable a single element.

You can use a CallbackPanel to avoid full page reload:

<eo:CallbackPanel runat="server" id="CallbackPanel1">
....eo:DatePicker goes here...
</eo:CallbackPanel>

You will also need to specify a trigger control for the CallbackPanel or trigger the callback manually. To speicfy a trigger control, just edit the CallbackPanel's Triggers property; To trigger the callback manually, call eo_Callback function:

http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.Global.eo_Callback.html

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.