Telerik Forums
UI for Silverlight Forum
7 answers
134 views
Just to let you know, in the HtmlPlaceHolder Window Integration demo, if you have the zoom in IE to anything but 100%, the html is either too small or too big for the window, and misplaced.

Christian
Martin Ivanov
Telerik team
 answered on 01 Sep 2020
0 answers
61 views

Hi,

I am loading dynamic HTML in RadHtmlPlaceHolder(Telerik.Windows.Controls.RadHtmlPlaceHolder). Html without image displays correctly, but with an image tag pointing an external , it closes IE. No error on runtime even no exception in debug mode too.

<img src='http://wallpapers.com/abc/abc.jpg'/>

 

 

 

AJ
Top achievements
Rank 1
 asked on 25 Mar 2019
5 answers
86 views

Hi,

I'm working on a Silverlight program, which is used to display the preview of an email. Once user entered the email and clicked preview button, that message will display as a html content in preview window, which has created using a telerik RadPlaceHolder. But when click the the button it gives the following error. Can someone help me to sort out this issue. Kindly note that I'm silverlight beginner.

 

The invocation of the constructor on type 'Telerik.Windows.Controls.RadHtmlPlaceholder' that matches the specified binding constraints threw an exception. [Line: 9 Position: 77]

 

This is my code

<telerik:RadWindow  x:Class="Mcs.Crm.ReportBursting.Controls.PrintPreview"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             Width="400"
             Height="300" HorizontalAlignment="Center" VerticalAlignment="Center">
    <Grid x:Name="LayoutRoot" Background="White">
        <Border BorderBrush="Black" BorderThickness="1">
            <telerik:RadHtmlPlaceholder x:Name="RadHtmlPlaceholder1" Margin="10"/>
        </Border>
    </Grid>
    </telerik:RadWindow >

 

public partial class PrintPreview : RadWindow
    {
        string mHtml;
        
        public PrintPreview()
        {
            InitializeComponent();
        }
        
        public PrintPreview(string html)
        {
            try
            {
                InitializeComponent();
            }
            catch (Exception)
            {
                
                throw;
            }
            
            mHtml = html;
            Loaded += new RoutedEventHandler(Page_Loaded);
        }

        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            RadHtmlPlaceholder1.HtmlSource = mHtml;
        }

 

 

Martin Ivanov
Telerik team
 answered on 21 Jun 2018
8 answers
60 views

Hi,

First of all, my issue is about RadTabControl and RadHtmlPlaceholder.

 In fact my scenario is quite simple. I have 2 RadTabItems with a RadHtmlPlaceholder as content template. Each time I select a tab and then come back to the previous tab, the sourceUrl of the embedded RadHtmlPlaceholder is reloaded. It means that if I made some actions on my webpage like entries in a form, I loose them everytime I change tab. I tried to set the IsContentPreserved property to true, however nothing changes about my issue.

 I hope you will help me,

 Thank you,

 Regards,

 

Martin Ivanov
Telerik team
 answered on 21 Mar 2018
1 answer
30 views

Hi -

 

We have a RadHtmlPLaceHolder in our application and the url is set to something like this

 

"https://{Website}/jwt?jwt={token}&return_to={returnto}"

 

and basically this redirects to another page.

 

This doesn't seem to be working for us. Do you have any idea what we would need to do so that redirection is not an issue?

 

Thanks, Shilpi

 

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Apr 2017
1 answer
40 views

I use HTMLPlaceHolder in my system, but it's not work and not has error

Below is my code

xml:

 <telerik:RadHtmlPlaceholder Grid.Row="0" x:Name="htmlViewer" Background="CornflowerBlue" Visibility="Visible" />

CS:

 htmlViewer.HtmlSource = @"
            <h1>
            Hello This is a <i style='color:red'>Html Content</i> !
            </h1>
            ";

The same code, I can run in a single demo,but in my system without any content

Please help me, thanks!

 

Dinko | Tech Support Engineer
Telerik team
 answered on 07 Mar 2017
1 answer
35 views
Hello,

I am trying to open below URL with query string  from silverlight XAML page

Silverlight Project :

I have used telerik RadhtmlPlaceHolder as below :

 xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"    
>
    <UI:GroupBox>
        <Grid>
            <telerik:RadHtmlPlaceholder x:Name="RadHtmlPlaceholder1" Grid.Row="0" x:FieldModifier="public" />           
        </Grid>
    </UI:GroupBox>

And load URL from code behind we screen is opened  as below :

private void OpenNSScreens()
        {
            try
            {
                this.Dispatcher.BeginInvoke(delegate
                {
                    this.RadHtmlPlaceholder1.SourceUrl = new Uri("https://10.100.112.23:8074/login?oIFt7TZ0aPMkx589qvLVo7BnXsvYkHxwbJHYIP/1GJeSvTDwSOVPl4EWKG1frk7f");
                   
                });
            }
            catch
            {
                throw;
            }
        }


ASPX project : (Angular JS)

I have added one controller and in controller i have method named "" from where above encrypted string is decrypted :

 public class LoginUserController : ApiController

{

     public static string Decrypt(string input, string password)
    {

        // Logic

    }

}

What actually happened is some sometimes my Decrypt method is not posted from .js file at that time my functionality is not working

Js is as below :

app.controller("LoginUserController",
    function LoginUserControllerFunc($scope, $http, ngEncryption, $cookies, $location, $rootScope) {

  var querystring = window.location.search.substring(1);
        if (querystring != null && querystring != undefined && querystring.length > 0) {
            var request = $http({
                method: "POST",
                url: "/api/LoginUser/DecryptString",
                params: { encryptionText: querystring }
            }).then((function myfunction(successdata) {
                if (successdata.status == "202") {
                    $scope.LoginUser.ErrorMsg = successdata.data;
                }
                else {
                    querystring = successdata.data;
                }               
                $scope.IsFromSilverlight = true;                                     
                var obj = JSON.parse(successdata.data);
                $scope.UserList = obj;
                if (obj != null) {
                    window.location.href = "/WelcomeScreen";
                }

            }));
        }

});

Please let me know what can I do to resolve this issue.
Kiril Vandov
Telerik team
 answered on 05 May 2016
1 answer
54 views

I have a page with RadPlaceHolder that runs with  out-of-browser option enabled. When I use this option some javascripts, for example, the javascript function alert, don't working, but the same page inside the browser the RadPlaceHolder execute every javascripts of html page.

There are some limitations when used RadPlaceHolder in Silverlight out-of-browser ?

Thanks.

Martin Ivanov
Telerik team
 answered on 31 Mar 2016
22 answers
249 views
Hi,

I have couple of HTMLContentPlaceHolders on my silverlight application, and I want to get my DropDown Menu which is in Silverlight and part of my Header to be displayed above the HTMLPlaceHolder but instead it opens behind the HTMLContent, I also tried specifying the z-index but in vain.

Has someone encountered this problem? Any help would be appreciated?

Thanks,
Ishvinder
Martin Ivanov
Telerik team
 answered on 18 Sep 2015
8 answers
143 views
Hey,

I used RadHTMLPlaceHolder to display HTML content,  I set Windowless parameter to true to get mouse event works on my page. now the problem is HTML content render on top of the silverlight content. see the attached image, silvelight right click render behind the HTML content.

I have read some article on internet suggesting that, if windowless parameter is set to true then HTML content render on top of the silverlight content. i want silverlight content to render on top of the HTML content plus wanna keep windowless parameter to be true.

is there anyway that i can get rid of this issue ?

thanks,

Piyush
Martin Ivanov
Telerik team
 answered on 18 Sep 2015
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?