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
		 
	 | 
	
		Rank: Administration Groups: Administration
 
 
Joined: 5/27/2007 Posts: 24,427 
	 | 
		   
	     
		    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 
		 
	 |