This is a migrated thread and some comments may be shown as answers.

RadNumericTextBox Onkeypress Server side

3 Answers 136 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 11 Sep 2011, 08:08 AM
in RadNumericTextBox onkeypress in server side i have some function done,
After enter that RadNumericTextBox i have assign some fields in another textbox


Thanks,
Mohamed.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Sep 2011, 09:01 AM
Hello Mohamed,

Try the following markup and Javascript to achieve your scenario.
aspx:
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server">
            <ClientEvents OnKeyPress="OnKeyPress" />
</telerik:RadNumericTextBox>
<telerik:RadTextBox ID="RadTextBox1" runat="server">
</telerik:RadTextBox>
JS:
<script type="text/javascript">
function OnKeyPress(sender, args)
 {
  var numeric = $find('<%=RadNumericTextBox1.ClientID %>');
  var temp = args.get_keyCharacter();
  var rtxt = $find('<%=RadTextBox1.ClientID %>');
  var temp = rtxt.get_value();
  temp += args.get_keyCharacter();
  rtxt.set_value(temp);
 }
</script>

Thanks,
Shinu.
0
mohamed
Top achievements
Rank 1
answered on 12 Sep 2011, 11:53 AM
Thanks for ur reply Shinu,

After i enter that RadTextBox i call database get values from database assign another three Radtextbox
How i achieve in client side
That's why i ask in server side 

Thanks,
Mohamed.
0
mohamed
Top achievements
Rank 1
answered on 19 Sep 2011, 09:11 AM
problem solved

Thanks,
Mohamed.
Tags
General Discussions
Asked by
mohamed
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
mohamed
Top achievements
Rank 1
Share this question
or