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

RadHtmlPlaceHolder Out-Of-Browser support

8 Answers 163 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Maulik Patel
Top achievements
Rank 1
Maulik Patel asked on 13 Apr 2010, 06:02 AM
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.

8 Answers, 1 is accepted

Sort by
0
Accepted
Valentin.Stoychev
Telerik team
answered on 13 Apr 2010, 06:35 AM
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.
0
Maulik Patel
Top achievements
Rank 1
answered on 14 Apr 2010, 06:23 AM
Hi Valentin,

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

Regards,
Maulik
0
Deepak Subhedar
Top achievements
Rank 1
answered on 28 Apr 2010, 06:03 PM
DO we need to still set windowless = true for RadHtmlPlaceHolder in OutOfBrowser mode?
0
Vlad
Telerik team
answered on 29 Apr 2010, 07:08 AM
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.
0
Deepak Subhedar
Top achievements
Rank 1
answered on 30 Apr 2010, 01:57 AM
If Telerik RadHtmlPlaceHolder is based on WebBrowser then when windowless mode needs to be set to true?
0
Valentin.Stoychev
Telerik team
answered on 30 Apr 2010, 07:39 AM
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.
0
Arjun
Top achievements
Rank 2
answered on 05 Aug 2011, 04:39 AM
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
0
Tina Stancheva
Telerik team
answered on 10 Aug 2011, 04:26 PM
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 >>

Tags
HTMLPlaceHolder
Asked by
Maulik Patel
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Maulik Patel
Top achievements
Rank 1
Deepak Subhedar
Top achievements
Rank 1
Vlad
Telerik team
Arjun
Top achievements
Rank 2
Tina Stancheva
Telerik team
Share this question
or