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

want to hide master page vertical scroll bar

2 Answers 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shankar mohan
Top achievements
Rank 1
shankar mohan asked on 06 May 2010, 11:31 AM
am using two rad grid
cos of that master page vertical scrool bar is enabled so
a large empty space below the page is visible
i wanna restrict that master page scrool vertical bar

even if i add 30 to 40 controls in a page am not getting vertical scroll bar from master page
if i add rad grid am getting

2 Answers, 1 is accepted

Sort by
0
shankar mohan
Top achievements
Rank 1
answered on 06 May 2010, 11:36 AM
<telerik:radajaxmanager ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1"  runat="server">  
           <AjaxSettings> 
               <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                   <UpdatedControls> 
                       <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                       <telerik:AjaxUpdatedControl ControlID="ReleaseOrderAmount" LoadingPanelID="RadAjaxLoadingPanel1"  /> 
                       <telerik:AjaxUpdatedControl ControlID="Service_Tax" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                       <telerik:AjaxUpdatedControl ControlID="Secondary_Tax" LoadingPanelID="RadAjaxLoadingPanel1"  /> 
                       <telerik:AjaxUpdatedControl ControlID="Education_Tax" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                   </UpdatedControls> 
               </telerik:AjaxSetting> 
               <telerik:AjaxSetting AjaxControlID="RadGrid2">  
                   <UpdatedControls> 
                       <telerik:AjaxUpdatedControl ControlID="RadGrid2"  /> 
                       <telerik:AjaxUpdatedControl ControlID="ReleaseOrderAmount" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                       <telerik:AjaxUpdatedControl ControlID="Service_Tax" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                       <telerik:AjaxUpdatedControl ControlID="Secondary_Tax" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                       <telerik:AjaxUpdatedControl ControlID="Education_Tax" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                   </UpdatedControls> 
               </telerik:AjaxSetting> 
           </AjaxSettings> 
           </telerik:radajaxmanager> 
 
 <telerik:radgrid   ID="RadGrid2"  runat="server" Width="2500px"   
            Visible="true" BackColor="LightBlue" ShowFooter="true" 
                                      
                                    PageSize="20" AllowPaging="True"   
                                    ShowStatusBar="true" GridLines="None"   
                                    AutoGenerateColumns="False"   
                                    Skin="Vista"                                                                           
                                    OnInsertCommand ="RadGrid1_InsertCommand"   
                                    OnUpdateCommand ="RadGrid1_InsertCommand"   
                                    OnDeleteCommand ="RadGrid1_InsertCommand"                                     
                                    OnItemDataBound ="RadGrid1_ItemDataBound"                                       
                                    OnNeedDataSource="RadGrid1_NeedDataSource"     
                                    OnItemCreated   ="RadGrid1_ItemCreated"           
                                    OnPreRender     ="Radgrid1_PreRender"                                                                                                                    
                                   > 
                <MasterTableView     CommandItemDisplay="Top" AutoGenerateColumns="false">                                                                                                            
                        <Columns>                
                <telerik:GridBoundColumn    DataField="Slno"             HeaderText="Slno"        UniqueName="Slno"     Visible="false" ReadOnly="true" />                  
                <telerik:GridBoundColumn    DataField="Programme"        HeaderText="Programme"   UniqueName="Programme"  Visible="false" ReadOnly="true" /> 
                <telerik:GridBoundColumn    DataField="InventoryType"    HeaderText="Inventory Type"   UniqueName="InventoryType" HeaderStyle-Width="40" Visible="false" ReadOnly="true"/>  
                <telerik:GridTemplateColumn    DataField="StartTime"        HeaderText="StartTime"       UniqueName="StartTime" HeaderStyle-Width="40" > 
                <ItemTemplate> 
                <asp:Label ID="StartTime" runat="server" Width="150" ReadOnly="true"  Text='<%# Bind("StartTime") %>'/>  
                            </ItemTemplate> 
                <EditItemTemplate> 
                <telerik:RadTimePicker ID="StartTime" runat="server" Width="150" /> 
                            </EditItemTemplate> 
                </telerik:GridTemplateColumn>                  
                <telerik:GridTemplateColumn    DataField="Endtime"        HeaderText="EndTime"       UniqueName="Endtime" HeaderStyle-Width="40" > 
                <ItemTemplate>   
                <asp:Label ID="Endtime" runat="server" Width="150" ReadOnly="true" Text='<%# Bind("Endtime") %>'/>  
                </ItemTemplate>                  
                <EditItemTemplate>   
                <telerik:RadTimePicker ID="Endtime" runat="server" Width="150" /> 
                </EditItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridBoundColumn       DataField="PrimeTime"  HeaderText="PrimeTime"   UniqueName="PrimeTime"  Visible="false" ReadOnly="true"/>                         
                <telerik:GridDropDownColumn    DataField="Commercial" HeaderText="Commercial" UniqueName="Commercial"   />                   
                <telerik:GridBoundColumn       HeaderText="Duration"  UniqueName="Duration"  DataField="Duration" />    
                <telerik:GridBoundColumn       HeaderText="TapeId"    UniqueName="TapeId"    DataField="TapeId" />    
                <telerik:GridDropDownColumn    DataField="Year"       HeaderText="Year"      UniqueName="Year"    />   
                <telerik:GridDropDownColumn    DataField="Month"      HeaderText="Month"     UniqueName="Month"  />                                                
                <telerik:GridBoundColumn  HeaderText="Day1" UniqueName="Day1" DataField="Day1" />                 
                <telerik:GridBoundColumn  HeaderText="Day2" UniqueName="Day2" DataField="Day2" /> 
                <telerik:GridBoundColumn  HeaderText="Day3" UniqueName="Day3" DataField="Day3" /> 
                <telerik:GridBoundColumn  HeaderText="Day4" UniqueName="Day4" DataField="Day4" /> 
                <telerik:GridBoundColumn  HeaderText="Day5" UniqueName="Day5" DataField="Day5" /> 
                <telerik:GridBoundColumn  HeaderText="Day6" UniqueName="Day6" DataField="Day6" /> 
                <telerik:GridBoundColumn  HeaderText="Day7" UniqueName="Day7" DataField="Day7" /> 
                <telerik:GridBoundColumn  HeaderText="Day8" UniqueName="Day8" DataField="Day8" /> 
                <telerik:GridBoundColumn  HeaderText="Day9" UniqueName="Day9" DataField="Day9" /> 
                <telerik:GridBoundColumn  HeaderText="Day10" UniqueName="Day10" DataField="Day10" /> 
                <telerik:GridBoundColumn  HeaderText="Day11" UniqueName="Day11" DataField="Day11" />                 
                <telerik:GridBoundColumn  HeaderText="Day12" UniqueName="Day12" DataField="Day12" /> 
                <telerik:GridBoundColumn  HeaderText="Day13" UniqueName="Day13" DataField="Day13" /> 
                <telerik:GridBoundColumn  HeaderText="Day14" UniqueName="Day14" DataField="Day14" /> 
                <telerik:GridBoundColumn  HeaderText="Day15" UniqueName="Day15" DataField="Day15" /> 
                <telerik:GridBoundColumn  HeaderText="Day16" UniqueName="Day16" DataField="Day16" /> 
                <telerik:GridBoundColumn  HeaderText="Day17" UniqueName="Day17" DataField="Day17" /> 
                <telerik:GridBoundColumn  HeaderText="Day18" UniqueName="Day18" DataField="Day18" /> 
                <telerik:GridBoundColumn  HeaderText="Day19" UniqueName="Day19" DataField="Day19" /> 
                <telerik:GridBoundColumn  HeaderText="Day20" UniqueName="Day20" DataField="Day20" /> 
                <telerik:GridBoundColumn  HeaderText="Day21" UniqueName="Day21" DataField="Day21" />                 
                <telerik:GridBoundColumn  HeaderText="Day22" UniqueName="Day22" DataField="Day22" /> 
                <telerik:GridBoundColumn  HeaderText="Day23" UniqueName="Day23" DataField="Day23" /> 
                <telerik:GridBoundColumn  HeaderText="Day24" UniqueName="Day24" DataField="Day24" /> 
                <telerik:GridBoundColumn  HeaderText="Day25" UniqueName="Day25" DataField="Day25" /> 
                <telerik:GridBoundColumn  HeaderText="Day26" UniqueName="Day26" DataField="Day26" /> 
                <telerik:GridBoundColumn  HeaderText="Day27" UniqueName="Day27" DataField="Day27" /> 
                <telerik:GridBoundColumn  HeaderText="Day28" UniqueName="Day28" DataField="Day28" /> 
                <telerik:GridBoundColumn  HeaderText="Day29" UniqueName="Day29" DataField="Day29" /> 
                <telerik:GridBoundColumn  HeaderText="Day30" UniqueName="Day30" DataField="Day30" /> 
                <telerik:GridBoundColumn  HeaderText="Day31" UniqueName="Day31" DataField="Day31" /> 
                <telerik:GridBoundColumn  HeaderText="TotalSpots" UniqueName="TotalSpots" DataField="TotalSpots" ReadOnly="true" />                 
                <telerik:GridBoundColumn  HeaderText="Contract_New_Rate" UniqueName="Contract_New_Rate" DataField="Contract_New_Rate" />                                
                <telerik:GridBoundColumn  HeaderText="Rate" UniqueName="Rate" DataField="Rate" ForceExtractValue="InEditMode"  Aggregate="Sum" FooterAggregateFormatString="Total: {0}" Visible="true"  ReadOnly="true" />                                                  
                  
                <telerik:GridEditCommandColumn ButtonType="ImageButton" Display="true" HeaderText="Edit" HeaderStyle-Width="40px"></telerik:GridEditCommandColumn> 
                <telerik:GridButtonColumn ButtonType="ImageButton" HeaderText="Delete" HeaderStyle-Width="40px" UniqueName="Delete" ConfirmDialogType="Classic" ConfirmText="Confirm to Delete" CommandName="Delete" ImageUrl="~//Styles/Images/DeleteBin.gif" /> 
                  
           </Columns> 
             
        </MasterTableView> 
                     <PagerStyle Position="Bottom" AlwaysVisible="true" Mode="NextPrevAndNumeric"></PagerStyle> 
                    <ClientSettings EnableRowHoverStyle="true">  
                        <Selecting AllowRowSelect="True" /> 
                        <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                         <ClientEvents OnCommand="checking" /> 
                    </ClientSettings> 
    </telerik:radgrid>   
 
0
Dimo
Telerik team
answered on 11 May 2010, 01:41 PM
Hi Shankar,

I created a test page based on your code snippet, but the problem was not reproduced. Can you please provide a full runnable sample?

Is the problem exhibited only in IE or in all browsers? You can try using the IE web developer toolbar to determine which element on the page causes it to expand.

Best wishes,
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
shankar mohan
Top achievements
Rank 1
Answers by
shankar mohan
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or