Hello,
I am using radnumeric textbox to enter discount at highlevel. If the user changes the discount on other items in the page, I want to clear the RadNumeric Textbox value. I am clearing the textbox using JQuery. On the UI, it is showing as cleared but again when I click on textbox, it is showing the value and on postback also that textbox is showing the same value. Is there any settings I have to change in RadNumeric Textbox
Here is my Code.
<telerik:RadNumericTextBox ID="txtDiscountlevel" runat="server" CssClass="BodyCopy" MaxLength="5" AutoCompleteType="None"
Type="Number" ShowSpinButtons="false" AllowOutOfRangeAutoCorrect="false" InvalidStyle-Font-Bold="true">
<NumberFormat AllowRounding="false" DecimalDigits="3" KeepNotRoundedValue="true" GroupSizes="4"/>
</telerik:RadNumericTextBox>
<telerik:RadNumericTextBox ID="txtNewPrice" runat="server" MaxLength="10" AutoCompleteType="None" MinValue="0" CssClass="CurPriceTxtbox"
Width="50px" Type="Number" ShowSpinButtons="false" AllowOutOfRangeAutoCorrect="false" InvalidStyle-Font-Bold="true">
<NumberFormat AllowRounding="false" DecimalDigits="2" KeepNotRoundedValue="true" GroupSizes="3"/>
<ClientEvents OnValueChanging="ValueChanged" OnError="HandleError"/>
</telerik:RadNumericTextBox>
function ValueChanged(sender, args) {
$("#txtDiscountlevel_text").val('');
}
I am using radnumeric textbox to enter discount at highlevel. If the user changes the discount on other items in the page, I want to clear the RadNumeric Textbox value. I am clearing the textbox using JQuery. On the UI, it is showing as cleared but again when I click on textbox, it is showing the value and on postback also that textbox is showing the same value. Is there any settings I have to change in RadNumeric Textbox
Here is my Code.
<telerik:RadNumericTextBox ID="txtDiscountlevel" runat="server" CssClass="BodyCopy" MaxLength="5" AutoCompleteType="None"
Type="Number" ShowSpinButtons="false" AllowOutOfRangeAutoCorrect="false" InvalidStyle-Font-Bold="true">
<NumberFormat AllowRounding="false" DecimalDigits="3" KeepNotRoundedValue="true" GroupSizes="4"/>
</telerik:RadNumericTextBox>
<telerik:RadNumericTextBox ID="txtNewPrice" runat="server" MaxLength="10" AutoCompleteType="None" MinValue="0" CssClass="CurPriceTxtbox"
Width="50px" Type="Number" ShowSpinButtons="false" AllowOutOfRangeAutoCorrect="false" InvalidStyle-Font-Bold="true">
<NumberFormat AllowRounding="false" DecimalDigits="2" KeepNotRoundedValue="true" GroupSizes="3"/>
<ClientEvents OnValueChanging="ValueChanged" OnError="HandleError"/>
</telerik:RadNumericTextBox>
function ValueChanged(sender, args) {
$("#txtDiscountlevel_text").val('');
}