This is a migrated thread and some comments may be shown as answers.

[Solved] Cell hyperlink template no longer display correctly in GridView Q2

1 Answer 113 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kevin
Top achievements
Rank 1
Kevin asked on 06 Jul 2009, 11:45 PM
Hello,

I have a template for GridViewCell to display hyperlink. It works fine in GridView Q1, but the new GridView Q2 does not show the border of the cell. Are there changes in the UI element used to display GridViewCell? Here is the tempate:

<

 

Style x:Key="CellIpHyperLinkStyle" TargetType="grid:GridViewCell">

 

 

 

<Setter Property="Template">

 

 

 

<Setter.Value>

 

 

 

<ControlTemplate TargetType="grid:GridViewCell">

 

 

 

<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}"

 

 

>

 

 

 

<HyperlinkButton TargetName="_blank" NavigateUri="{Binding IP, Converter={StaticResource IpFormater}}" HorizontalAlignment="Center" VerticalAlignment="Center"

 

 

Content="{Binding IP}" >

 

 

 

</HyperlinkButton>

 

 

 

</Border>

 

 

 

</ControlTemplate>

 

 

 

</Setter.Value>

 

 

 

</Setter>

 

 

 

</Style>

 

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 07 Jul 2009, 05:41 AM
Hello Kevin,

I'm afraid that you will get the same behavior with both Q1 and Q2. You've missed to set BorderThickness similar to this example:
http://demos.telerik.com/silverlight/#GridView/ColumnTypes/TemplateAndUnbound

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or