Welcome Guest Search | Active Topics | Sign In | Register

DatePicker & DisableTextBox Options
Mark Rae
Posted: Wednesday, September 3, 2014 7:47:30 AM
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
eo_support
Posted: Wednesday, September 3, 2014 8:32:16 AM
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!
Mark Rae
Posted: Wednesday, September 3, 2014 9:54:18 AM
Rank: Advanced Member
Groups: Member

Joined: 11/13/2008
Posts: 43
Yes. That disables the entire control, including the image to pop the calendar.
eo_support
Posted: Wednesday, September 3, 2014 12:28:13 PM
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
Mark Rae
Posted: Thursday, September 4, 2014 4:32:32 AM
Rank: Advanced Member
Groups: Member

Joined: 11/13/2008
Posts: 43
Thanks, but that has no effect when DisableTextBox is set to "True".
eo_support
Posted: Thursday, September 4, 2014 8:32:08 AM
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


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.