I need to make a input numeric textbox where only thousands are allow, and minimum value 5000
for example 5000, 7000, 10.000, ....
if some gives in 7300 if has to be rounded to 7000, if 259200 to 259000 >> so rounded to the nearest 1000
i have tried to do the first step (check if it is a thousand) with a
<telerik:radnumerictextbox MinValue="5000" ClientEvents-OnKeyPress="" Culture="nl-BE" id="txtBedrag" runat="server">
<NumberFormat DecimalDigits="0" />
<ClientEvents OnValueChanged="OnValueChanged" />
</telerik:radnumerictextbox>
<
script type="text/javascript">
function
OnValueChanged(sender, eventArgs)
{
var number = aspnetForm.ctl00_ContentPlaceHolder1_txtBedrag_text.value;
if (number % 1000 > 0)
return false;
}
</script>
but this doenst do anyhting, if someone can help me, please let me know !
thanks,
wouter