RadHtmlPlaceholder SourceUri

2 posts, 0 answers
  1. Edward
    Edward avatar
    13 posts
    Member since:
    Aug 2010

    Posted 08 Jul 2010 Link to this post

    I am using a Url to initially set a Telerik RadHtmlPlaceholder control.  I then perform some stuff which will return a new Uri which I will want to display on the same Telerik RadHtmlPlaceholder control.   The new Url is not displayed.  I am binding the SourceUri to just a typical CLR property. 





    <telerik:RadHtmlPlaceholder x:Name="_htmlReport" SourceUrl="{Binding Path=SourceUri, Mode=TwoWay}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" />









    public Uri _sourceUri = new Uri("http://www.google.com/");




    public Uri SourceUri {




    get {




    return _sourceUri;





    set {


    _sourceUri =







     Should I elevate this to a DependencyProperty?  Seems as if it would work if the initial Url is displayed but why not the updated Url?

  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 14 Jul 2010 Link to this post

    Hello Edward,

    You don't have to use a DependencyProperty. However, for a change notification to occur in a binding between a bound client and a data source, your bound type should either:
    • Provide a change event for each property of the bound type.

    I prepared a sample project illustrating the first approach. Please give it a try and let me know if it works for you or if you need more info.
    Sincerely yours,
    Tina Stancheva
    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 R3 2016 release webinar banner
Back to Top