Basic Date Picker Forums
Welcome to Basic Date Picker Forums
Sign in
|
Join
|
Help
in
Time Picker (forum)
Latest Versions - 1.2 to 1.4 (group)
(Entire Site)
Search
Basic Date Picker Forums
»
Latest Versions - 1.2 to 1.4
»
Time Picker
»
Timepicker Width - SingleTextBox mode
Timepicker Width - SingleTextBox mode
Last post 01-20-2008, 6:32 PM by
geoffrey.mcgill
. 1 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
01-18-2008, 2:32 AM
1395
cliffb
Joined on 01-18-2008
Posts 1
Timepicker Width - SingleTextBox mode
OK, I give up. How do I change the width of a timepicker control when it's set to SingleTextBox?
Report abuse
01-20-2008, 6:32 PM
1397
in reply to
1395
geoffrey.mcgill
Joined on 04-15-2005
Canada
Posts 716
Re: Timepicker Width - SingleTextBox mode
Hi cliffb,
Here's a few options...
1. Set the InputStyle property
<BDP:TimePicker ID="TimePicker1" runat="server" DisplayType="SingleTextBox">
<InputStyle Width="150px" />
</BDP:TimePicker>
Although I just noticed that the width is not being picked up in VS Design Mode. Seems to be fine at runtime, just not during design. We should be able to fix that shortly.
2. Add an input style to your page.
<style type="text/css">
input {
width: 150px;
}
</style>
3. If you want finer Css control over only the TimePicker input field, then applying a CssClass should help.
<style type="text/css">
.TimePicker input {
width: 150px;
}
</style>
<BDP:TimePicker
ID="TimePicker1"
runat="server"
DisplayType="SingleTextBox"
CssClass="TimePicker"
/>
Hope this helps.
Thanks,
Geoffrey McGill
----------------------------------------
Coolite Inc.
Email: support [at] coolite [dot] com
Phone: +1(888)775-5888
Report abuse
Copyright Coolite Inc., 2004-2007. All rights reserved.