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

numericTextbox for arrow up n down problem

1 Answer 108 Views
Input
This is a migrated thread and some comments may be shown as answers.
Eltiel
Top achievements
Rank 1
Eltiel asked on 06 Apr 2013, 09:35 AM
Recently, I am implementing the numericTextbox, also I wanna the key of "arrow up" and "down" for other javascript function.
I only can disable the default "increase function" .  please help. Thanks

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 11 Apr 2013, 06:01 AM
Hi Eltiel,

In order to call a JavaScript method you can intercept the OnValueChanging client-side event of the RadNumericTextBox like demonstrated below:

ASPX:
<telerik:RadNumericTextBox runat="server" ID="RadNumericTextBox" ShowSpinButtons="true">
        <ClientEvents OnValueChanging="ValueChanging" />
    </telerik:RadNumericTextBox>

JavaScript:
function ValueChanging(sender,args)
       {
           MyCustomMethod();
       }

The second requirements is difficult to understand. Do you want do disable both of the spin buttons? Please elaborate more on your requirements so we could give you a more precise answer.

All the best,
Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Input
Asked by
Eltiel
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or