RadHtmlPlaceHolder Out-Of-Browser support

9 posts, 1 answers
  1. Maulik Patel
    Maulik Patel avatar
    36 posts
    Member since:
    Mar 2010

    Posted 13 Apr 2010 Link to this post

    Hi,

    Does RadHTMLPlaceHolder support the Out-Of-Browser functionality? I am using Q1, 2010 release. But I got an error saying " RadHtmlPlaceHolder cannot run Out-Of-Browser Applications"!!

    If this is not yet supported, is there any plan to support in near future releases?

    Regards,
    Maulik Patel.
  2. Answer
    Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 13 Apr 2010 Link to this post

    Hi Maulik Patel,

    Yes we added OOB support. The bits will be available later this week.

    Regards,
    Valentin.Stoychev
    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. Maulik Patel
    Maulik Patel avatar
    36 posts
    Member since:
    Mar 2010

    Posted 14 Apr 2010 Link to this post

    Hi Valentin,

    Thanks for the quick reply. Can you please update the thread when it gets released?

    Regards,
    Maulik
  5. Deepak Subhedar
    Deepak Subhedar avatar
    10 posts
    Member since:
    Sep 2009

    Posted 28 Apr 2010 Link to this post

    DO we need to still set windowless = true for RadHtmlPlaceHolder in OutOfBrowser mode?
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 29 Apr 2010 Link to this post

    Hi,

    You can check this blog post for more info.

    Sincerely yours,
    Vlad
    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.
  7. Deepak Subhedar
    Deepak Subhedar avatar
    10 posts
    Member since:
    Sep 2009

    Posted 29 Apr 2010 Link to this post

    If Telerik RadHtmlPlaceHolder is based on WebBrowser then when windowless mode needs to be set to true?
  8. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 30 Apr 2010 Link to this post

    Hi Deepak Subhedar,

    WebBrowser is available only in OOB mode. You still need to set the windowless to true when running in the browser.

    Greetings,
    Valentin.Stoychev
    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.
  9. Arjun
    Arjun avatar
    3 posts
    Member since:
    Apr 2011

    Posted 04 Aug 2011 Link to this post

    Hi Valentin

    I have develop an application with Silverlight 4.0 and Telerik 2011.1.315.1040 controls
    Its working fine on Browser mode but i face difficulties in making it work in Out Of Browser mode.
    I have used telerik:RadHtmlPlaceholder for Browser mode and WebBrowser for Out Of Browser mode.

    I am using following code

    private void htmlplaceholder_UrlLoaded(object sender, EventArgs e)
            {
                string Text = ViewModel.SelectedCommunicationTemplate.TEMPLATE_HTML;
                BusyIndicator.IsBusy = false;
                if (!Application.Current.IsRunningOutOfBrowser)
                {
                    HtmlElement iframes = (HtmlElement)this.htmlplaceholder.HtmlPresenter.Children[0];
                    iframes.SetAttribute("id", "myIFrame");
                    string codes = @"document.getElementById('myIFrame').contentWindow.SetText('" + Text + "');";
                    HtmlPage.Window.Eval(codes);
                }

    else
    {
    webBr.InvokeScript("SetText", ViewModel.SelectedCommunicationTemplate.TEMPLATE_HTML);
    }
            }

      private void BtnSend_Click(object sender, RoutedEventArgs e)
            {
                if (!Application.Current.IsRunningOutOfBrowser)
                {
                    HtmlElement iframe = (HtmlElement)this.htmlplaceholder.HtmlPresenter.Children[0];
                    iframe.SetAttribute("id", "myIFrame");
                    string code = "document.getElementById('myIFrame').contentWindow.GetText();";
                    string editorText = System.Convert.ToString(HtmlPage.Window.Eval(code));
                    ViewModel.CONTENT = editorText;
                    this.Close();
                }
                else
                {
                    string code = webBr.InvokeScript("GetText").ToString();
                    ViewModel.CONTENT = code;
                    this.Close();
                }
            }

    Please suggest me something so that i am able to use RadHtmlPlaceholder in out of browser mode.

    within RadHtmlPlaceholder I have put a telerik:RadEditor in Out of browser mode hoe we set and get the to telerik:RadEditor using RadHtmlPlaceholder not from WebBrowser.

    Thanks in advance!!!
    Cheers
    Arjun W. Balip
  10. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 10 Aug 2011 Link to this post

    Hi Arjun,

    Can you please elaborate on your issue? What do you mean by "set and get the telerik:RadEditor using RadHtmlPlaceholder not from WebBrowser"? In OOB mode the RadHtmlPlaceholder uses internally a WebBrowser control to display its content so you can access the RadEditor displayed in the RadHtmlPlaceholder only through the WebBrowser control. Your code snippets demonstrate exactly the approach that can be used to evaluate a script from the page displayed in the RadHtmlPlaceholder both in OOb and in the browser and this is why I don't think I understand your issues.  But if you can send us a sample illustrating your scenario, we will definitely look into it.

    All the best,
    Tina Stancheva
    the Telerik team

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

Back to Top
DevCraft banner