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

[Solved] Header does not scroll horizontally

1 Answer 175 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RR
Top achievements
Rank 1
RR asked on 15 Apr 2008, 07:22 PM

I am having the exact same problem as mentioned in this thread except I am having this problem with RadGrid "Prometheus":
http://www.telerik.com/community/forums/thread/b311D-hamem.aspx


"When I have a grid that requires horizontal scrolling, but does not have enough rows to require paging, dragging the scroll bar only moves the body of the grid, not the header or footer.

If there are enough rows for there to be paging and virtual scrolling then everything works fine."

Basically, the summary is that when the vertical scroll is NOT present and the horizontal scroll is present this problem happens. When both horizontal and vertical scrolls are present, this problem does not happen.

The data is bound at runtime in the needdatasource event.

I am using the most recent Prometheus 2007-3-1425 hotfix.

Here is the grid definition:
<telerik:RadGrid ID="RadGrid1" runat="server"
            PageSize="50" AllowSorting="True" Skin="Office2007" AllowPaging="True"
            ShowGroupPanel="True"  GridLines="None" AllowFilteringByColumn="True" OnNeedDataSource="RadGrid1_NeedDataSource" OnColumnCreated="RadGrid1_ColumnCreated" OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound"  >
            <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>                                  
                <MasterTableView CommandItemDisplay="Bottom" CurrentResetPageIndexAction="SetPageIndexToFirst"
                     Dir="LTR" Frame="Border"  TableLayout="Fixed" GroupLoadMode="Server">                   
                    <ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
                        Resizable="True" Visible="False">
                    </ExpandCollapseColumn>  
                    <CommandItemTemplate>                           
                           <asp:Button ID="btnExcel" Width="150px" Text="Export Excel" OnClick="btnExcel_Click"
                                runat="server" BackColor="AliceBlue" BorderColor="AliceBlue" Font-Bold="true" />                           
                            <asp:Button ID="btnCSV" Width="150px" Text="Export CSV" OnClick="btnCSV_Click"
                                runat="server" BackColor="AliceBlue" BorderColor="AliceBlue" Font-Bold="true" />
                    </CommandItemTemplate>
                    <Columns>
                     <telerik:GridTemplateColumn AllowFiltering="False" HeaderText="TemplateColumn" UniqueName="TemplateColumn">
                                <ItemTemplate>
                                    <asp:Button ID="Button1" runat="server" CommandName="MyCustomAction" Text="Do action"
                                        OnClick="Button1_Click" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                    </Columns>                                                     
                </MasterTableView>
            <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True"
                AllowColumnsReorder="True"   >                               
                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true"     />
                <Resizing AllowColumnResize = "true" ClipCellContentOnResize="true"  EnableRealTimeResize="true" ResizeGridOnColumnResize="true"  />               
            </ClientSettings>
<ExportSettings>
<Csv ColumnDelimiter="Comma" RowDelimiter="NewLine" />
<Pdf FontType="Subset" PaperSize="Letter" />
<Excel Format="Html" />
 </ExportSettings>
</telerik:RadGrid>

Regards,
Talha

1 Answer, 1 is accepted

Sort by
0
RR
Top achievements
Rank 1
answered on 16 Apr 2008, 05:23 PM
The problem went away by downloading the RadControls_for_ASP.NET_AJAX_2008_1_415_trial_hotfix
Tags
Grid
Asked by
RR
Top achievements
Rank 1
Answers by
RR
Top achievements
Rank 1
Share this question
or