Welcome Guest Search | Active Topics | Sign In | Register

How to enable/disable Date Picker Control using client side javascript? Options
Adeel Aslam
Posted: Wednesday, August 22, 2007 9:49:36 AM
Rank: Newbie
Groups: Member

Joined: 8/21/2007
Posts: 8
Hi

I am trying to enable/disable Date Picker control using javascript. Here is the test code:

eo_GetObject("DatePicker1").disabled = 'true';

I am not sure, it the correct way to do it or not. Please help me out.

Thanks
eo_support
Posted: Wednesday, August 22, 2007 10:02:06 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi Adeel,

You won't be able to disable a DatePicker directly from the client side. An easy workaround is to put the DatePicker into a CallbackPanel control, then use server side code to disable it. Since it is inside the CallbackPanel, when the callback is triggered, only the DatePicker itself will be updated.

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.