RadGrid with StaticHeaders not displaying GridHyperLinkColumn

3 posts, 1 answers
  1. DMAC
    DMAC avatar
    2 posts
    Member since:
    Apr 2007

    Posted 08 Jan Link to this post

    I have a RadGrid with Scrolling-AllowScroll="true" and Scrolling-UseStaticHeaders="true" but the GridHyperLinkColumn columns are not displayed.  They do show up correctly when Scrolling-UseStaticHeaders="false".


    Is there a way to show the GridHyperLinkColumn with Scrolling-UseStaticHeaders="true"?


    01.<telerik:RadGrid ID="RadGrid2" runat="server" GridLines="None" Width="100%" PageSize="10000" AllowPaging="False" AutoGenerateColumns="False" OnNeedDataSource="RadGrid2_NeedDataSource" OnItemCreated="RadGrid2_ItemCreated" ShowStatusBar="False" AllowSorting="True" AllowFilteringByColumn="False" Skin="Web20">
    02.                        <ClientSettings Scrolling-AllowScroll="true" Scrolling-UseStaticHeaders="true" AllowColumnsReorder="False" ReorderColumnsOnClient="False">
    03.                            <Resizing AllowColumnResize="False" EnableRealTimeResize="False"></Resizing>
    04.                            <Selecting AllowRowSelect="True"></Selecting>
    05.                        </ClientSettings>
    06.                        <FilterItemStyle Font-Size="8px" />
    07.                        <PagerStyle ShowPagerText="False" AlwaysVisible="False"  />
    08.                        <MasterTableView Width="100%" DataKeyNames="OrderID,OrderNumber,OrderVendorItemID" AutoGenerateColumns="False" CommandItemDisplay="Bottom" >
    09.                            <CommandItemSettings ShowAddNewRecordButton="False" ShowExportToExcelButton="True" ShowRefreshButton="False" />
    10.                            <Columns>
    12.                                        <telerik:GridHyperLinkColumn DataNavigateUrlFields="OrderID" ImageUrl="/icons/edit_20_16.png" Target="blank" DataNavigateUrlFormatString= "editorder.aspx?OrderID={0}" DataType="System.String">
    13.                                            <HeaderStyle Width="5px" />
    14.                                            <ItemStyle HorizontalAlign="Center" />
    15.                                        </telerik:GridHyperLinkColumn>
    17.                                        <telerik:GridBoundColumn DataField="OrderNumber" HeaderText="Order No." SortExpression="OrderNumber" UniqueName="OrderNumber" DataType="System.String" Display="true" ItemStyle-HorizontalAlign="Center" >
    18.                                            <HeaderStyle Wrap="false" />
    19.                                            <ItemStyle Wrap="false" />
    20.                                        </telerik:GridBoundColumn>
    22.                        </MasterTableView>
    23.                    </telerik:RadGrid>
  2. DMAC
    DMAC avatar
    2 posts
    Member since:
    Apr 2007

    Posted 08 Jan in reply to DMAC Link to this post

    Changing the GridHyperLinkColumn to a TemplateColumn works.  If there is a way to make it work with GridHyperLinkColumn please post.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Pavlina avatar
    6084 posts

    Posted 13 Jan Link to this post


    Attached you can find a sample project with grid, static headers and HyperlinkColumn which is working without problems. I tested the page with Q3 2015 SP1 version of the controls. Give it a try and see what is the difference in your case.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top