I'm using WPF 4.0, v2011.2.712.40.
I have a grid with two columns that have hyperlink controls in the datatemplate so I can launch to another view within my application when a user clicks on the link. Periodically the hyperlinks do not trigger the command it is bound to. If I refresh the list that the grid is bound to then the item with the issue will start to work but sometimes other items stop working. Here is the column definition. As you can see from the commented parts of the datatemplate I have also tried using a button but have issues there as well. If I let the button (or radbutton) look like a regular button without styling it everything seems to work better but if I put a style on it to make it look like a link button the memory usage of my app increases dramatically as the grid is scrolled.
I have a grid with two columns that have hyperlink controls in the datatemplate so I can launch to another view within my application when a user clicks on the link. Periodically the hyperlinks do not trigger the command it is bound to. If I refresh the list that the grid is bound to then the item with the issue will start to work but sometimes other items stop working. Here is the column definition. As you can see from the commented parts of the datatemplate I have also tried using a button but have issues there as well. If I let the button (or radbutton) look like a regular button without styling it everything seems to work better but if I put a style on it to make it look like a link button the memory usage of my app increases dramatically as the grid is scrolled.
<
telerik:GridViewDataColumn
Header
=
"Account"
DataMemberBinding
=
"{Binding AccountName}"
FooterCellStyle
=
"{StaticResource GridNoLinesFooterStyle}"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<!--<
Button
Content
=
"{Binding AccountName}"
Command
=
"{Binding DataContext.OpenAccountCommand, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"
CommandParameter
=
"{Binding}"
/>-->
<!--<
telerik:RadButton
Content
=
"{Binding AccountName}"
Command
=
"{Binding DataContext.OpenAccountCommand, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"
CommandParameter
=
"{Binding}"
Style
=
"{StaticResource hyperlinkButtonStyle}"
/>-->
<
TextBlock
>
<
Hyperlink
Command
=
"{Binding DataContext.OpenAccountCommand, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"
CommandParameter
=
"{Binding}"
>
<
TextBlock
Text
=
"{Binding AccountName}"
></
TextBlock
>
</
Hyperlink
>
</
TextBlock
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
<
telerik:GridViewBoundColumnBase.AggregateFunctions
>
<
telerik:CountFunction
Caption
=
"Count:"
/>
</
telerik:GridViewBoundColumnBase.AggregateFunctions
>
</
telerik:GridViewDataColumn
>