Rank: Member Groups: Member
Joined: 5/20/2008 Posts: 11
|
Hi Support Team,
How can i make a datepicker "READ-ONLY"? that means... 1. no popup image 2. Text-box is readonly (user cannot change date by typing it in the textbox) I also want to know whether there is any way to make a date picker read- only from client side script (javascript).
thanking you.
regards Varun
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
I believe you can do that by setting the DatePicker's Enabled property to false. It will still display the popup image but the image is disabled. If you do want to get rid of the image, you can set PopupImageVisible to false.
I do not think you can change the DatePicker to disabled on the client side. You can simulate it by using a CallbackPanel and then do an AJAX call to the server side through the CallbackPanel. If you are not already familiar with the CallbackPanel, you can take a look of the online documentation. It should be fairly easy to get started.
Thanks
|