This is a migrated thread and some comments may be shown as answers.
RadHtmlPlaceholder SourceUri
1 Answer 43 Views
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 08 Jul 2010, 10:48 PM
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 =

 

value;

 

}

 

 

 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?

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 14 Jul 2010, 08:21 AM
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:
or
  • 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
Asked by
Edward
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or