Good afternoon All,
I'm implementing a RadNumericTextbox for a timesheet entry page where the users are required to enter their time in half hour increments.
I've tried attaching a RegularExpressionValidator to the control which has it's ValidationExpression set to "^\d+\.[05]$".
I would expect an error on anything not ending with a 0 or 5. I can't get this to accept an entry ending in a 0 (like 1.0 or 3.0). It accepts entries ending in .5, as expected.
If I set the ValidationExpression to "^\d+\.[12]$", it catches anything that doesn't end with a 1 or 2 - as I would expect.
Is there something about an entry ending in 0?
Here's the aspx for the Textbox
<telerik:RadNumericTextBox ID="numtxtMonday" runat="server"
ButtonsPosition="Right"
EnabledStyle-HorizontalAlign="right"
IncrementSettings-Step="0.5"
InvalidStyle-ForeColor="red"
MaxValue="24" MinValue="0"
NumberFormat-DecimalSeparator="."
NumberFormat-DecimalDigits="1" NumberFormat-GroupSeparator=""
NumberFormat-AllowRounding="true"
ShowSpinButtons="true" Type="Number" ValidationGroup="saveTime"
Width="75px" Value="0.0" >
</telerik:RadNumericTextBox>
thanks!
Sheryl