Select to view content in your preferred language

Datagrid Hyperlink

937
2
02-29-2012 05:38 AM
gabrielvazquez
Deactivated User
Using a hyperlink button in datagrid, but it does not open the hyperlink. ReportURL is the name of the hyperlink field, which is being populated from a querytask. The same query is feeding into a maptip.hyperlink, which is working fine. But when I try to add a hyperlinkbutton to the datagrid results using the same field, it doesnt open the link. Below is some code, for the data grid. Anyone have any ideas. I've also populated the hyperlink field into a textcolumn, and the url is displaying correctly, so I at least know the datagrid can read the field.

<data: DataGrid x:Name="IncidentTable"
SelectionChanged="IncidentTable_SelectionChanged"
LoadingRow="IncidentTable_LoadingRow"
AutoGenerateColumns="False"
CanUserReorderColumns="True"
RowStyle="{StaticResource MyCustomRow}">
<data: DataGrid.Columns>
    <data: DataGridTextColumn Binding="{Binding Attributes[IncidentName]}" />
    <data: DataGridTemplateColumn Header="Report URL">
         <data: DataGridTemplateColumn.CellTemplate>
               <DataTemplate>
                       <HyperlinkButton Content="Open Report"
                       <NavigatUri="{Binding [ReportURL]}"
                       <TargetName="_blank" />
               </DataTemplate>
          </data: DataGridTemplateColumn.CellTemplate>
</data: DataGrid.Columns>
</data: DataGrid>

Also,
I am currently trying to upload Fiddler to our internal network, so hopefully that will help.
0 Kudos
2 Replies
ChrisBradberry
Deactivated User
aka,

you misspelled NavigateUri .

Chris
0 Kudos
nakulmanocha
Esri Regular Contributor
0 Kudos