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

RadComboBox Focus() is not working

3 Answers 82 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Priya Iyer
Top achievements
Rank 1
Priya Iyer asked on 29 Sep 2010, 02:12 AM
Hi,

I'm developing a silverlight application and I'm using telerik controls. when I load a page I want to make my radcombo box selected or focused. I used radCmbbox.focus(). but it is not working. is there any other way to accomplish this?

Thanks,
Priya

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 01 Oct 2010, 09:34 AM
Hello Priya,

You should focus the Silverlight plug-in before focusing the combobox like this:

private void UserControl_Loaded(object sender, RoutedEventArgs e)
{
    System.Windows.Browser.HtmlPage.Plugin.Focus();
    radCmbbox.Focus();   
}

Hope this helps.

Greetings,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Priya Iyer
Top achievements
Rank 1
answered on 11 Oct 2010, 08:07 PM
Hi Yana,

Thanks for the reply. I used as you said but still it's not getting focus. 

I'm using 4 RadCmbBoxes inside a Panel.

Thanks,
Priya
0
Yana
Telerik team
answered on 15 Oct 2010, 07:56 AM
Hi Priya,

I've attached my test project to show you that the code works as expected at our side - OpenDropDownOnFocus property of the first combobox is enabled to prove that it receives the focus.
Could you please download  the project and give it a try? What is different in your case?


Kind regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Priya Iyer
Top achievements
Rank 1
Answers by
Yana
Telerik team
Priya Iyer
Top achievements
Rank 1
Share this question
or