|
Rank: Advanced Member Groups: Member
Joined: 11/13/2008 Posts: 43
|
I'm using the DatePicker control and want to prevent users typing dates directly, thus forcing them to use the calendar part of the control.
I can do this by setting the DisableTextBox property to True, but this removes the border from the TextBox and still allows users to pop the calendar by clicking in the TextBox.
Is there any way to:
1) prevent users from typing or clicking the TextBox portion? 2) keeping the border round the TextBox?
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
Have you tried to set the DatePicker's Enabled property to false?
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 11/13/2008 Posts: 43
|
Yes. That disables the entire control, including the image to pop the calendar.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, You can set PickerStyle property. This style is actually the style applied to the textbox area. For example, you can do something like this:
Code: HTML/ASPX
<eo:DatePicker ....>
<PickerStyle CssText ="border: solid 1px black; width:100px; height:20px;" />
.....
</eo:DatePicker>
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 11/13/2008 Posts: 43
|
Thanks, but that has no effect when DisableTextBox is set to "True".
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
We tested this and it works fine. If it still does not work for you, please try to create a test page to demonstrate the problem and we will be happy to take a look.
Thanks
|
|