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

RadGrid with StaticHeaders not displaying GridHyperLinkColumn

2 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
DMAC
Top achievements
Rank 1
DMAC asked on 09 Jan 2016, 12:01 AM

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>
11. 
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>
16.                             
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>
21.</Columns>
22.                        </MasterTableView>
23.                    </telerik:RadGrid>

2 Answers, 1 is accepted

Sort by
0
DMAC
Top achievements
Rank 1
answered on 09 Jan 2016, 12:33 AM
Changing the GridHyperLinkColumn to a TemplateColumn works.  If there is a way to make it work with GridHyperLinkColumn please post.
0
Accepted
Pavlina
Telerik team
answered on 13 Jan 2016, 05:39 PM
Hi,

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.

Regards,
Pavlina
Telerik
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
Tags
General Discussions
Asked by
DMAC
Top achievements
Rank 1
Answers by
DMAC
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or