Kendo Numeric text box

2 posts, 0 answers
  1. Naga
    Naga avatar
    15 posts
    Member since:
    Apr 2012

    Posted 29 Jun 2012 Link to this post

    Hello Pls give an example to work with Kendo Numeric text box as i am hanged up without slecting a value.
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 03 Jul 2012 Link to this post

    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
Back to Top