Hi,
I found the example below that shows how to force the user to enter a number in .5 increments. I need my radnumerictextbox to increment on pack size increments that will vary by item. So in my RadGrid I plan on setting the ValidationExpression on each item during itemdatabind. The bottom line is if the pack size is 24 the box should increment by 24 when the up or down key is hit but also only allow them to type valid increments 24,48,72 etc.
Any idea what the ValidationEpression might look like or is there another way to read the increment setting on the control and only allowing valid increments to get entered?
I found the example below that shows how to force the user to enter a number in .5 increments. I need my radnumerictextbox to increment on pack size increments that will vary by item. So in my RadGrid I plan on setting the ValidationExpression on each item during itemdatabind. The bottom line is if the pack size is 24 the box should increment by 24 when the up or down key is hit but also only allow them to type valid increments 24,48,72 etc.
Any idea what the ValidationEpression might look like or is there another way to read the increment setting on the control and only allowing valid increments to get entered?
<Telerik:RadNumericTextBox ID="txtQtyShp" runat="server" DataType="System.Int" DbValue='<%# Bind("qtyshp") %>'></telerik:RadNumericTextBox>
<asp:RegularExpressionValidator ID="vldQtyShp" runat="server" Display="Dynamic"
ErrorMessage="Please enter valid number." ValidationExpression="^\d+(\.[5])?$"
ControlToValidate="txtQtyShp">
</asp:RegularExpressionValidator>
Thanks,
Tom Usselman
ErrorMessage="Please enter valid number." ValidationExpression="^\d+(\.[5])?$"
ControlToValidate="txtQtyShp">
</asp:RegularExpressionValidator>