Hi,
I have RadNumericTextBox in teplate field of RadGrid. There are many rows=many texboxes. Users will fill some number in numeric textbox and by pressing Tab I want to:
- save edited value from radnumerictextbox to database through AJAX call
- move to another row (=next RadNumericTextbox), edit value, press Tab etc...
I set for each RadNumericTextBox OnValueChanged client side event. But after AJAX call radgrid refresh itself and RadNumericTextbox looses focus. RadGrid is not AJAXified. What do I have wrong? Thank you.
<telerik:RadNumericTextBox ID="txtCounterValue" runat="server" Width="80"
MinValue="0" NumberFormat-AllowRounding="false" NumberFormat-DecimalDigits="0"
EnabledStyle-HorizontalAlign="Right" EnabledStyle-Font-Bold="true"
>
<ClientEvents OnValueChanged="CounterValueChanged" />
</telerik:RadNumericTextBox>
and javascript:
I have RadNumericTextBox in teplate field of RadGrid. There are many rows=many texboxes. Users will fill some number in numeric textbox and by pressing Tab I want to:
- save edited value from radnumerictextbox to database through AJAX call
- move to another row (=next RadNumericTextbox), edit value, press Tab etc...
I set for each RadNumericTextBox OnValueChanged client side event. But after AJAX call radgrid refresh itself and RadNumericTextbox looses focus. RadGrid is not AJAXified. What do I have wrong? Thank you.
<telerik:RadNumericTextBox ID="txtCounterValue" runat="server" Width="80"
MinValue="0" NumberFormat-AllowRounding="false" NumberFormat-DecimalDigits="0"
EnabledStyle-HorizontalAlign="Right" EnabledStyle-Font-Bold="true"
>
<ClientEvents OnValueChanged="CounterValueChanged" />
</telerik:RadNumericTextBox>
and javascript:
function CounterValueChanged(sender, args) { var
allOK = true; var oldValue
= args.get_oldValue(); var
newValue = args.get_newValue();$find("<%=
RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest('UpdateCounter')
}