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

RadGrid UseStaticHeaders with GridTemplateColumns

3 Answers 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 22 Feb 2016, 02:45 PM

I've noticed some funny behavior when I combine the UseStaticHeaders and GridTemplateColumn configurations for the RadGrid.

The grid loses the header and the detail disappears on occasion as well.

Here is a snippet of code:

<telerik:RadGrid
runat="server"
ID="gridSample"
AutoGenerateColumns="false"
ShowHeader="true"
ShowFooter="false"
OnItemDataBound="gridSample_ItemDataBound"
OnNeedDataSource="gridSample_NeedDataSource"
>
<ClientSettings>
<Scrolling AllowScroll="true" ScrollHeight="400px" UseStaticHeaders="true" />
</ClientSettings>
<MasterTableView EnableNoRecordsTemplate="true">
<NoRecordsTemplate>
<asp:Label runat="server" Text="There is no file to review" />
</NoRecordsTemplate>
<Columns>
<telerik:GridTemplateColumn HeaderText="Name" UniqueName="Name">
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("LastName") + ", " + Eval("FirstName") + " " + Eval("MiddleName") %>' />
</ItemTemplate>
<ItemStyle Width="45%" HorizontalAlign="Left" />
<HeaderStyle Width="45%" HorizontalAlign="Left" />
</telerik:GridTemplateColumn>
.

.

.

</Columns>
</MasterTableView>
</telerik:RadGrid>

I believe the sticking point is the use of static headers with the grid template columns. If I remove either the template columns or the UseStaticHeaders declarative, the problem goes away.

This is an older app that i am supporting and it is using the 2015.1.225.35 version of the assembly.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 23 Feb 2016, 03:56 PM
Hello,

I tried to replicate the issue but to no avail. You can find my test project attached, 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
0
Randy
Top achievements
Rank 1
answered on 25 Feb 2016, 11:08 AM
A couple of other factors to consider. The code is running in IE11 in compatibility mode. And the grids are located within RadWindows.
0
Pavlina
Telerik team
answered on 01 Mar 2016, 11:11 AM
Hi,

I have updated the project and placed the grid in window. Then I tested it in IE compatibility mode, however, it is still working as expected.

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
Grid
Asked by
Randy
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Randy
Top achievements
Rank 1
Share this question
or