RadHTMLPlaceHolder steals Focus

2 posts, 0 answers
  1. asking
    asking avatar
    2 posts
    Member since:
    Sep 2011

    Posted 13 Sep 2011 Link to this post

    Hello everybody,

    I have a problem with the RadHTMLPlaceHolder and I hope that somebody can help me.

    When a new source is assigned to it via (see the code below in XAML.cs):
    this.RadHTMLPlaceHolder.HtmlPresenter.Children[0].SetProperty("src", htmlString);
    after the source is assigned to the RadHTMLPlaceHolder the RadHTMLPlaceHolder
    steals the Focus of my GridView, but I want the Focus to remain on the GridView-Control.

    I've tried out following Events to control the Focus, but they didn't help:

            private void GridView_LostFocus(object sender, RoutedEventArgs e)

            private void RadHtmlPlaceHolder_UrlLoaded(object sender, EventArgs e)

    Is there a property or an event or a command or a codesnippet with which I can
    force the Focus to remain on my GridView when a Source is assigned to a RadHTMLPlaceHolder?

    Please help me out!

    Asking Developer

  2. Petar Mladenov
    Petar Mladenov avatar
    3130 posts

    Posted 16 Sep 2011 Link to this post

    Hello Asking,

     Unfortunately, this cannot be achieved using the events of the RadHtmlPlaceholder. It could be achieved on a Button's click event which is fired after the HTML source is loaded. 

    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top