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

Kendo Input

3 Answers 225 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:50 AM
Hello Pls give an example to work with Kendo Input.

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 04 Jul 2012, 02:15 PM
Hi Naga,

The Kendo Input control is the base control for most of the Kendo UI controls such as:
    - Kendo AutoComplete
    - Kendo ComboBox 
    - Kendo DropDownList
    - Kendo DatePicker
    - Kendo TimePicker
    - Kendo NumericTextBox


The base class for all of these controls is the KendoInput class. However in order to use their full functionality you need to cast them to their extended classes.

For example, you can type in the KendoNumericTextBox using only the base class with code like this:
 
KendoInput textBox = ActiveBrowser.Find.ByExpression<KendoInput>("class=k-widget k-numerictextbox");
 
textBox.TypeText("50");

But in order to increase or decrease the value entered in the text box, you need to use methods like SpinUpClick() and SpinDownClick(). These methods are not available in the base KendoInput class, so you need to either cast the KendoInput to KendoNumericTextBox or use the following code to find it as such:
KendoNumericTextBox textBox = ActiveBrowser.Find.ByExpression<KendoNumericTextBox>("class=k-widget k-numerictextbox");
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
0
Naga
Top achievements
Rank 1
answered on 17 Jul 2012, 02:55 PM
Hello:
       There is no translator available for Kendo Input control to slect values from a list box.Can you please help us in this regard.
0
Plamen
Telerik team
answered on 17 Jul 2012, 03:57 PM
Hi Naga,

The KendoInput translator will be included in our next official SP2 release, which should be released at the end of this week. 

I have recorded this short video to demonstrate how the KendoInput translator works with our latest internal build. We'll also introduce an InputText property, that you can use for data-driven scenarios as seen in this video

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
Naga
Top achievements
Rank 1
Share this question
or