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

Filtering on GridViewHyperlinkColumn

1 Answer 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 14 Nov 2011, 08:12 PM
Hello,

I have a similar question to the one posted here:

http://www.telerik.com/community/forums/silverlight/gridview/gridviewhyperlinkcolumn-and-filtering.aspx

Basically, I have a GridViewHyperlinkColumn that needs to be filtered via its friendly name, rather than its URL (i.e. the values retrieved by its ContentBinding rather than its DataMemberBinding).

Writing a custom filter control from scratch is not feasible since the customer wants all the advanced functionality of the built-in default string filter, as well as the same look and feel, and doing this all from the ground up seems a bit like reinventing the wheel just to accomodate one small change.

Can someone give me a more detailed approach on how it would be possible to swap the URL with the friendly name in the filter? Creating an IValueConverter to convert the URL back and forth probably wouldn't work either as the URL does not contain the friendly name of the link.

Please help!

Thanks,

Brian

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 16 Nov 2011, 01:24 PM
Hi Brian,

I am afraid this is not possible with GridViewHyperLinkColumn .
The only workaround I can think of is to use a regular GridViewDataColumn bound to the property you need to be filtered.  This column can still be customized to display a hyperlink as content using the CellTemplateProperty.

Best wishes,
Pavel Pavlov
the Telerik team

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

Tags
GridView
Asked by
Brian
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or