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

code for custom text in radcombobox

1 Answer 12 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pranavi
Top achievements
Rank 1
Pranavi asked on 01 Aug 2013, 03:07 PM
Hello,
How can write code for to enter text in radcombobox.I added code lik this
SilverlightApp app = ActiveBrowser.SilverlightApps()[0];   
         Telerik.WebAii.Controls.Xaml.RadComboBox cb =app.Find.ByAutomationId<Telerik.WebAii.Controls.Xaml.RadComboBox>("id=Cmb_CustomerName");

cb.text="Jain";


plz suggest write code.


Thanks&Regards,
Pranavi.k

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 05 Aug 2013, 12:22 PM
Hi Pranavi,

Thank you for contacting Telerik support.

Please use TypeText method in order to set a text in the RadComboxBox. Note that the combobox should be editable:

SilverlightApp app = ActiveBrowser.SilverlightApps()[0];  
Telerik.WebAii.Controls.Xaml.RadComboBox cb =app.Find.ByAutomationId<Telerik.WebAii.Controls.Xaml.RadComboBox>("id=Cmb_CustomerName");
cb.TypeText("test");

Let me know if this helps.

Regards,
Boyan Boev
Telerik
We've released our first-ever public Test Studio BETA! Download the BETA, install it,
and send us your feedback! Expires mid-August!
Tags
General Discussions
Asked by
Pranavi
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or