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

GridViewDynamicHyperlinkColumn UriFormatException

1 Answer 104 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Betsy
Top achievements
Rank 1
Betsy asked on 20 Oct 2011, 01:41 PM

WPF v2011.2.712.40

We have a grid showing a list of contacts with email addresses.  If an email is not valid a UriFormatException is thrown when just hovering over the hyperlink or trying to click on the hyperlink.  How can we trap this and stop the exception from being thrown?  I looked for error events on the grid and could not find anything obvious.

<telerik:GridViewDynamicHyperlinkColumn Header="Email" NavigateUrlMemberPaths="EmailAddress" NavigateUrlFormatString="{} mailto:{0}"  DataMemberBinding="{Binding EmailAddress}" />

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Oct 2011, 09:45 AM
Hi,

 I've just tried this with our latest official version (Q2 2011 Sp1) and everything worked as excepted. 

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Betsy
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or