3 Answers, 1 is accepted
You may be better off using two RadSpinEditors for this, using a Max value of 12 for the inches and something else sensible (7?) for the feet.
There is also this article on Code Project which you may be interested in. Bear in mind though of course that this is not a Telerik solution, and is only using the standard Microsoft controls.
I hope that this helps, but let me know if you need more information
Richard
An easy cheat is:
DecimalSeparator="'"
Make the decimal seperator a single quote (feet). Then user type exactly as you speak.. "I'm 6 foot 3" and you type it 6'3
Then what ever you do with the value which is 6.3 (six, with a decimal 3) is you choice. (Split the value on the ".", and then you know its 6'3" and convert and store it in an STANDARD INTERNATIONAL format. The conversion can be done easy in your SQL stored procedure.
I have a numeric textbox with a dropdown next to it where the person choose m, cm, mm or " ' and then that goes to the stored procedure and I handle it there... I store everyone's height in my choice (cm in my case). My select stored procedure, look at the users user preference (lenght measurement) and then know how to transform the value.
When the dropdownbox builds, I set group separator, decimal separator, max. min, etc, based on the users' choice of lenght measurement.
Similar I do for weight, volume, temprature.
Thank you for updating the thread.
I am sure the community will benefit from your reply.
Should you further questions please do not hesitate to write back.
Regards,
Hristo Merdjanov
Telerik by Progress