Welcome Guest Search | Active Topics | Sign In | Register

Problem - To Make Datepicker Read-only (Both VB.Net code & Javascript) Options
Varun Paval
Posted: Saturday, May 24, 2008 12:52:22 AM
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
eo_support
Posted: Saturday, May 24, 2008 8:34:48 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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


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.