Review: Peter's Date Package 1.1
page 4 of 5
by Steven Smith
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 29842/ 48

Times and Durations

Less common, but still high up on the usefulness scale, are controls that allow the user to enter a time of day or a period of time. The TimeOfDayTextBox and DurationTextBox fill these roles.

TimeOfDayTextBox

As with the DateTextBox, this control is heavily optimized for data entry personnel. The input is filtered and can be formatted automatically to whatever standard is desired. There are no pop-up commands with this control, but it does support arrows to increment and decrement the hours and minutes. These arrows are optional and are controlled by the xShowCommandButtons property. Figure 5 shows an example of a TimeOfDayTextBox control in action.

Figure 5: TimeOfDayTextBox with CommandButtons shown. (Firefox)

DurationTextBox

If it’s a TimeSpan data type you’re after, rather than a DateTime, the DurationTextBox is for you. It allows hours, minutes, and seconds to be specified in a standardized manner. It’s optimized for data entry, and allows keyboard shortcuts, but doesn’t include pop-ups or extra user interface elements. Figure 6 shows an example, including its tooltip (all of these controls provide such tooltips).

Figure 6: DurationTextBox with ToolTip (IE6)

 

Integration

One other cool feature of the TimeOfDayTextBox is that it can be integrated with the DateTextBox, allowing them to act as one element for getting and setting full DateTime values. This is done via the TimeOfDayTextBox's xDateTime property.  To make this connection, you simply need to assign the controlID of the DateTextBox to the TimeOfDayTextBox's xDateTextBoxControlID property.


View Entire Article

User Comments

Title: Peter Berg   
Name: Steven Smith
Date: 2005-10-14 3:47:58 PM
Comment:
Peter,
I won't delete your comment since I think it's good to have folks on both sides of the issues, but how can you possibly say these controls are not well documented? Did you not see the massively long document that came with the product which covered nearly every possible detail about the controls? I thought Peter Blum's docs were stellar - far better than many other control vendors - so you may have other legitimate gripes, but I don't think documentation can really be one of them.
Title: Over-rated   
Name: Peter Berg
Date: 2005-10-14 3:27:50 PM
Comment:
I think these controls are overrated for the price. Additionally, it doesn't have any documentation. Perhaps Peter can spend some of his valuable time on documenting his crappy controls.

P.S. Plz don't come up with %$#@*% like this again.
Title: Peter Blum controls   
Name: Brendon Muck
Date: 2005-04-29 3:40:54 PM
Comment:
We've been using Peter's Date Package for the past 2 years or so, and they are top notch. I've only had 1 problem, which Peter himself was quick to help me out with.

These controls are a bargain, even at twice their actual price!
Title: Must have   
Name: Rick Gifford
Date: 2005-04-11 11:26:20 AM
Comment:
We have been using these controls for a year now in a production application and have been extremely happy with the tools, the documentation and the quality of the support.
Title: Peter Blum Date Contols   
Name: Richard Cotter
Date: 2005-04-10 6:20:24 PM
Comment:
I struggled with Microsoft validation controls for validating date and time. From the very start after trialing and then buying Peter's Date Controls, I solved all my date and time problems. I like to use and recognize good quality design and development.
Title: Indispensable   
Name: Peter Montgomery
Date: 2005-04-10 9:53:08 AM
Comment:
I can't rate these controls highly enough.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2021 ASPAlliance.com  |  Page Processed at 2021-03-01 5:54:22 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search