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

[Solved] how to Grid without horizantal scroll and vertical scroll header style

1 Answer 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dank
Top achievements
Rank 1
dank asked on 05 Aug 2009, 10:23 AM
Hi all i use radgrid with scrolling but when scrolling is on the header (see the link for more info) of grid above the scroll looks different than the content header and on IE8 horizantal scroll is shown
The html markup of radgrid is below
<telerik:RadGrid HeaderStyle-Height="20px" BackColor="#ebebeb" ID="GroupSelectListGrid" AutoGenerateColumns="false" 
                runat="server" GridLines="None"  Width="450px" TableLayout="Fixed" > 
                <MasterTableView CommandItemDisplay="None" Width="425px"  CurrentResetPageIndexAction="SetPageIndexToFirst" 
                    Dir="LTR" Frame="Border" TableLayout="Fixed">                      
                    <Columns> 
                        <telerik:GridBoundColumn DataField="Id" Visible="false" DataType="system.string" 
                            ReadOnly="True" SortExpression="Id" UniqueName="Id">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20px" HeaderStyle-Width="20px" UniqueName="Selection">  
                            <ItemTemplate> 
                                <asp:CheckBox ID="SelectGroupCheckBox" Width="14" runat="server" AutoPostBack="false" /> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridBoundColumn DataField="Name" DataType="system.string" HeaderText="Adı" 
                            ItemStyle-Width="300" HeaderStyle-Width="400" ReadOnly="True" SortExpression="Name" UniqueName="Name">  
                        </telerik:GridBoundColumn> 
                    </Columns> 
                    <NoRecordsTemplate> 
                        Listelenecek Kayıt Bulunmadı</NoRecordsTemplate> 
                </MasterTableView> 
                <ClientSettings> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="1">  
                    </Scrolling> 
                </ClientSettings> 
            </telerik:RadGrid> 

so how to disable horizantal scroll and headerstyle for vertical scroll like the content header?
Thanks

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 07 Aug 2009, 11:25 AM

Hello Dank,

To restrict the horizontal bar from being rendered, verify that the total width of the declaratively set columns is smaller than the width of the grid itself.

About the question for HeaderStyle when using scrolling with static headers, please refer to the following blog post:
Browser Inconsistencies with Scrolling and Padding  

Regards,

Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
dank
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or