Rank: Newbie Groups: Member
Joined: 8/20/2007 Posts: 3
|
Hi Guys,
Is there any way we can enable or disable calendar (DateTime picker) control on a client. If not is there any way we can get SelectedDate onChange for both manual keyboard input and picked date.
Thank you.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
There isn't a way to disable the control on the client. However you can use a CallbackPanel to do that easily. Just put the DatePicker inside a CallbackPanel, set the date picker as a trigger, then set the date picker's AutoPostBack to true. That should cover both manual keyboard input and picked date. You can then disable the DatePicker on server side inside CallbackPanel_Execute or DatePicker_SelectionChanged.
Thanks
|