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

Kendo Numeric text box

1 Answer 211 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Naga
Top achievements
Rank 1
Naga asked on 29 Jun 2012, 10:47 AM
Hello Pls give an example to work with Kendo Numeric text box as i am hanged up without slecting a value.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 03 Jul 2012, 03:14 PM
Hi Naga,

Here's a sample code demonstrating how to set, clear, increase and decrease a value when working with the KendoNumericTextBox control.
 
//Get the TextBox object
KendoNumericTextBox textBox = ActiveBrowser.Find.ByExpression<KendoNumericTextBox>("class=k-widget k-numerictextbox");
 
//Clear the current text box content
textBox.Clear();
 
//Type in the text box
textBox.TypeText("50");
 
//Click on the upper arrow button to increase the value by 1
textBox.SpinDownClick();
 
//Click on the lower arrow button to decrease the value by 1
textBox.SpinUpClick();
Hope this helps.

Kind regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Naga
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or