I'm attempting to use HyperlinkColumn inside a silverlight navigation app. SL navigation apps use named anchors for navigation between different pages in the same app like:
#/SrvTry1?AccountID=130129&OnlyActive=True
or
#/Circuits?CircuitID=24
I don't think your HyperlinkColumn class is handling this type of relative URI correctly. I have the following setup:
When I click on the link from my DSLs page, the address in my address bar incorrectly changes from:
http://mypc/FM.Web/FMTestPage.aspx#/DSLs
to
http://mypc/FM.Web/FMTestPage.aspx#/DSLs$/Circuits?CircuitID=73
instead of:
http://mypc/FM.Web/FMTestPage.aspx#/Circuits?CircuitID=73
like it should be.
My hyperlink column is bound to a property that returns a Uri of the following type:
return new Uri(string.Format("#/Circuits?CircuitID={0}", CircuitID), UriKind.Relative);
Futher,
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(string.Format("#/Circuits?CircuitID={0}", CircuitID), UriKind.Relative));
works as you would expect so I don't think it is a problem my code but could be wrong of course.
Relatedly, the relevant XAML for this is:
<ig:HyperlinkColumn Key="CircuitIDUri" ContentBinding="{Binding CircuitID}" HeaderText="CircuitID" />
It sure would be nice if the filtering was smart enough to work off the ContentBinding instead of the Key - because as is filtering doesn't work on HyperlinkColumns but it would be nice if it did.
Hello,
I am looking into the vaigation issue for you and I will enter a feature request for the sort using the ContentBinding, however in the meantime you should be able to create a custom sort for the column. Please see
http://help.infragistics.com/Help/NetAdvantage/Silverlight/2011.1/CLR4.0/html/SL_xamGrid_Custom_Sort.html
for more information.
Valerie