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

RadGrid Header Not Formatting Correctly

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 28 May 2010, 03:42 PM
I have a RadGrid that is not displaying the header row correctly.  The right column of the RadGrid has got some odd formatting.  I have attached a document (.png) that illustrates the issue.

Here is sample code the pages:

This page is not working:
<telerik:RadGrid ID="grdMasterList" Visible="true" runat="server" EnableEmbeddedSkins="false" 
                            Skin="Premise" AllowPaging="false" AllowMultiRowSelection="false" AutoGenerateColumns="false" 
                            PageSize="25" AllowSorting="true" OnItemDataBound="grdMasterList_ItemDataBound" 
                            OnItemCreated="grdMasterList_ItemCreated" Height="100%">  
                            <ClientSettings EnableRowHoverStyle="true">  
                                <Selecting AllowRowSelect="true" /> 
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                                <ClientEvents OnGridCreated="GridHeight" /> 
                            </ClientSettings> 
                            <MasterTableView Name="CodeTable" HierarchyLoadMode="ServerOnDemand" DataKeyNames="PersNbr" 
                                ClientDataKeyNames="ChkInOutStatus, PersNbr, DeviceNbr, CurrBreakStatCd, BreakNbr" TableLayout="Fixed">  
 

This page is working:
<telerik:RadGrid ID="grdMasterList_ZoneCoverage" runat="server" EnableEmbeddedSkins="false" 
                                        Skin="Premise" AllowPaging="false" AllowMultiRowSelection="false" AutoGenerateColumns="false" 
                                        PageSize="25" AllowSorting="true" OnItemCreated="grdMasterList_ZoneCoverage_ItemCreated" 
                                        OnItemDataBound="grdMasterList_ZoneCoverage_ItemDataBound" OnPreRender="grdMasterList_ZoneCoverage_PreRender" 
                                        Height="600">  
                                        <ClientSettings EnableRowHoverStyle="false">  
                                            <Selecting AllowRowSelect="true" /> 
                                            <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                                            <ClientEvents OnGridCreated="GridHeight" /> 
 

</ClientSettings>

                                        <MasterTableView Name="CodeTable" HierarchyLoadMode="ServerOnDemand" DataKeyNames="OrgNbr" TableLayout="Fixed">


I have tried turning TableLayout Auto and Fixed.  But that had no effect.

Any thoughts?

Thanks.

Steve


1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 28 May 2010, 03:58 PM
Hi Steve,

For some reason the RadGrid header item becomes higher than usual. Either prevent this, or remove the top-right background with

<telerik:RadGrid  CssClass="rgNoScrollImage"  />

Due to the specifics of the RadGrid rendering, we do not support alignment of the top-right image with a random header height.

Greetings,
Dimo
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or