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

Hyperlink column is not filtering on first try for RadGrid.

1 Answer 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Smruti Ranjan
Top achievements
Rank 1
Smruti Ranjan asked on 06 Feb 2012, 02:06 PM
I have a grid having the first column as the hyperlink type which navigates to the detail page for that record.

But when i try to filter the record by this column it does not working only for th first time and works fine after that.
 Please give suggestions what may be the reasons and what can be fixes if any.
Thanks in advance ..:)

Here is th column i had used as mentioned below :-

<telerik:GridHyperLinkColumn UniqueName="CustomerID" DataTextField="CustomerID" DataNavigateUrlFields="CustomerHeaderSK"
                        DataNavigateUrlFormatString="~/Modules/SP/CustomerRecordView.aspx?Mode=Edit&ID={0}"
                        HeaderStyle-Width="80px" HeaderText="Customer" SortExpression="CustomerID" CurrentFilterFunction="StartsWith"
                        ShowFilterIcon="False" AutoPostBackOnFilter="True" FilterControlWidth="60px">
                        </telerik:GridHyperLinkColumn>

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 07 Feb 2012, 07:13 AM
Hello,

Filtering in GridHyperLinkColumn works based on its DataTextField and DataType should be specified as string.
aspx:
<telerik:GridHyperLinkColumn DataType="System.String" UniqueName="ID" DataTextField="ID"  HeaderText="link" DataNavigateUrlFields="ID" CurrentFilterFunction="StartsWith">
</telerik:GridHyperLinkColumn>

-Shinu.
Tags
Grid
Asked by
Smruti Ranjan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or