Dexter wrote:I don't want to use a DatePicker for a string bindable field. The question was can I have a leading zero in that segments or not?!
No. The MaskedEdit never automatically fills 0, either at the beginning or at the end. It validates the input against a mask, if it matches, accept it, otherwise rejects.
Dexter wrote:I don't understand why you turn the question to a different direction!?
We are not turning the question. We are giving you a workable solution. We apologize if the solution is not what you expected, but that's what's available to our best knowledge.
Dexter wrote:Our logic may be changed so we pick time between 08:00 to 17:00 - would it be possible then to restrict DatePicker to these values?
We are not aware of any way to do that on DatePicker. You can do that on the MaskedEdit with two Number segments (which allows you to set Max/Min value) but as you have already noticed, you won't get the zeros automatically filled in. Regardless which control you use, you can always use some JavaScript to automatically corrects the value when the textbox loses focus. This has been recently discussed in this post:
http://www.essentialobjects.com/Forum/Default.aspx?g=posts&t=1888The post was for the DatePicker control. However it works with MaskedEdit control the same way.
Hope this answers your question.
Thanks