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

Filtering in hyperlink column

2 Answers 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Angella
Top achievements
Rank 1
Angella asked on 02 Jul 2012, 09:44 AM
Hi all,

    I have a radgrid which contains 3 columns. In this, the second column is hyperlink type and it navigates to another page. When I filter records using this column it won't work for the first time and then it works after that.

Please provide some suggestions.

Code for the column:

<telerik:GridHyperLinkColumn UniqueName="Description" DataTextField="Description" DataNavigateUrlFields="FindDescription"   DataNavigateUrlFormatString="~/Clients/Details.aspx?Mode=Edit&ID={1}"  HeaderStyle-Width="150px" HeaderText="Description" SortExpression="Description" CurrentFilterFunction="StartsWith"  ShowFilterIcon="False" AutoPostBackOnFilter="True" FilterControlWidth="70px">  </telerik:GridHyperLinkColumn>

Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 02 Jul 2012, 09:52 AM
Hi Angella,

Try setting the DataType to System.String.

ASPX:
<telerik:GridHyperLinkColumn UniqueName="Description" DataType="System.String"  DataTextField="Description" DataNavigateUrlFields="FindDescription" DataNavigateUrlFormatString="~/Clients/Details.aspx?Mode=Edit&ID={1}"  HeaderStyle-Width="150px" HeaderText="Description" SortExpression="Description" CurrentFilterFunction="StartsWith" ShowFilterIcon="False" AutoPostBackOnFilter="True" FilterControlWidth="70px">  </telerik:GridHyperLinkColumn>

Thanks,
Shinu.
0
Angella
Top achievements
Rank 1
answered on 12 Jul 2012, 09:01 AM
Thank you.
Tags
Grid
Asked by
Angella
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Angella
Top achievements
Rank 1
Share this question
or