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

GridHyperLinkColumn filter not working when added inside DetailTables

1 Answer 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prash
Top achievements
Rank 1
Prash asked on 29 Oct 2014, 03:01 AM
We are facing an issue upon using filter on a GridHyperLinkColumn when this is present inside DetailTables. We are using 2014.2.724.40 versions and are experiencing this issue across all browsers viz. IE9, Chrome, Firefox.

Is there any other attribute that needs to be set in the code snippet below?

<telerik:RadGrid ID="grdView" runat="server" AutoGenerateColumns="false" EnableAJAXLoadingTemplate="True"
        AllowSorting="true" GroupingEnabled="false"
AllowPaging="true" PageSize="10" OnNeedDataSource="grdView_NeedDataSource" OnDetailTableDataBind="grdView_DetailTableDataBind"   OnItemCommand="grdView_ItemCommand">
        <ExportSettings ExportOnlyData="true" OpenInNewWindow="true" HideStructureColumns="true" FileName="ExportExcel"
            IgnorePaging="true">
        </ExportSettings>
        <MasterTableView ShowHeader="False" CommandItemDisplay="Top" PageSize="10" DataKeyNames="GroupName" AllowFilteringByColumn="true">
<CommandItemSettings ShowRefreshButton="false" RefreshText="" ShowAddNewRecordButton="true" AddNewRecordText="AddNew"   AddNewRecordImageUrl="../Images/RadGrid/Duplicate.gif"
                ShowExportToExcelButton="true" ExportToExcelText="Export to Excel" ExportToExcelImageUrl="../Images/RadGrid/ExportToExcel.gif"
                ShowExportToCsvButton="true" ExportToCsvText="Collapse All" ExportToCsvImageUrl="../Images/RadGrid/CollapseAll.gif"
                ShowExportToPdfButton="true" ExportToPdfText="Expand All" ExportToPdfImageUrl="../Images/RadGrid/ExpandAll.gif" />
            <Columns>
                <telerik:GridTemplateColumn UniqueName="GroupName" DataField="GroupName">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblGroupName" Text='<%#Bind("GroupName") %>'>
                        </asp:Label>
                        <asp:Label runat="server" ForeColor="Blue" ID="lblDisplayName" Text='<%#Bind("DisplayName") %>'>
                        </asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Wrap="true" />
                    <ItemStyle Width="100%" />
                </telerik:GridTemplateColumn>
            </Columns>
            <DetailTables>
                <telerik:GridTableView AllowSorting="True" Width="100%" runat="server" ClientDataKeyNames="Id" AllowFilteringByColumn="true">
                    <ParentTableRelation>
                        <telerik:GridRelationFields />
                    </ParentTableRelation>
                    <Columns>
<telerik:GridHyperLinkColumn  DataTextField="RequestNo" Target="_blank" DataNavigateUrlFormatString="~/FormController.aspx? Id={0}" DataType="System.String"
                            DataNavigateUrlFields="Id" HeaderText="Request#" UniqueName="RequestNo"
                            SortExpression="RequestNo" ShowFilterIcon="false" FilterControlWidth="100%"
                            CurrentFilterFunction="Contains" AutoPostBackOnFilter="true">
                            <HeaderStyle Width="100px" />
                            <ItemStyle HorizontalAlign="Left" CssClass="hyperlink" />
                        </telerik:GridHyperLinkColumn>
                    </Columns>
                    <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" Wrap="false" Position="Bottom" PageButtonCount="5" />
                    <ExpandCollapseColumn ButtonType="ImageButton" UniqueName="ExpandColumn" Visible="False">
                        <HeaderStyle Width="19px" />
                    </ExpandCollapseColumn>
                </telerik:GridTableView>
            </DetailTables>
            <ExpandCollapseColumn ButtonType="ImageButton" UniqueName="ExpandColumn">
                <HeaderStyle Width="19px" />
            </ExpandCollapseColumn>
            <NoRecordsTemplate>
                There is no document to display
            </NoRecordsTemplate>
            <ExpandCollapseColumn ButtonType="ImageButton" UniqueName="ExpandColumn">
                <HeaderStyle Width="19px" />
            </ExpandCollapseColumn>
        </MasterTableView>
        <GroupingSettings CaseSensitive="false" />
        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" PageButtonCount="10" />
        <ClientSettings>
            <Selecting AllowRowSelect="true" />
            <ClientEvents OnRowDblClick="RowDblClick"/>
        </ClientSettings>
    </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 31 Oct 2014, 04:21 PM
Hello,

Indeed GridHyperLinkColumn filter on enter key is not working when the column is added inside DetailTables. This bug is already logged in our feedback portal from where you can follow the status of this item:
http://feedback.telerik.com/Project/108/Feedback/Details/142091-gridhyperlinkcolumn-filter-on-enter-key-is-not-working-when-the-column-is-added-i

Your Telerik points are also updated.

As a temporary solution you can show the filter icon and choose the filter function from there:
<telerik:GridHyperLinkColumn  DataTextField="RequestNo" Target="_blank" DataNavigateUrlFormatString="~/FormController.aspx? Id={0}" DataType="System.String"
                            DataNavigateUrlFields="Id" HeaderText="Request#" UniqueName="RequestNo"
                            SortExpression="RequestNo" ShowFilterIcon="true" FilterControlWidth="100%">
                            <HeaderStyle Width="100px" />
                            <ItemStyle HorizontalAlign="Left" CssClass="hyperlink" />
                        </telerik:GridHyperLinkColumn>

Please excuse us for the inconvenience caused.

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Prash
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or