the code:
<telerik:RadNumericTextBox ShowSpinButtons="False" DisplayText="Infinite"
ID="MaximumAmount_tb" runat="server" IncrementSettings-InterceptArrowKeys="true">
<ClientEvents OnFocus="OnMAximumAmounttbFocus" />
</telerik:RadNumericTextBox>
function OnMAximumAmounttbFocus(sender, args) {
if (sender.get_displayValue() == "Infinite") {
sender.set_value("9,999,999,999,999.99999");
}
else
{return false; }
}
I always get this number as a result of the focus: 1 billion why? and how can I fix my problem to display: 999999999999999.99999?
source
share