RadComboBox Focus() is not working

4 posts, 0 answers
  1. Priya Iyer
    Priya Iyer avatar
    15 posts
    Member since:
    Apr 2010

    Posted 28 Sep 2010 Link to this post

    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
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 01 Oct 2010 Link to this post

    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
  3. DevCraft banner
  4. Priya Iyer
    Priya Iyer avatar
    15 posts
    Member since:
    Apr 2010

    Posted 11 Oct 2010 Link to this post

    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
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 15 Oct 2010 Link to this post

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