RadGrid UseStaticHeaders with GridTemplateColumns

4 posts, 0 answers
  1. Randy
    Randy avatar
    2 posts
    Member since:
    Feb 2016

    Posted 22 Feb Link to this post

    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.
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 23 Feb Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Randy
    Randy avatar
    2 posts
    Member since:
    Feb 2016

    Posted 25 Feb in reply to Pavlina Link to this post

    A couple of other factors to consider. The code is running in IE11 in compatibility mode. And the grids are located within RadWindows.
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 01 Mar Link to this post

    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
Back to Top