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

Scrolling Issue

2 Answers 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John John
Top achievements
Rank 1
John John asked on 11 Feb 2010, 11:50 AM
Hello Telerik,
                      I am facing an issue in scrolling.The header sections are moved out of Div area to the right side and the items are only can be viewed correctly in the div section. 
 I set the following properties   to set the Scrolling in Grid       

CS
                RadFirmGrid.ClientSettings.Scrolling.AllowScroll = true;  
                RadFirmGrid.ClientSettings.Scrolling.UseStaticHeaders = true;  
                RadFirmGrid.ClientSettings.Scrolling.SaveScrollPosition = true;  
                RadFirmGrid.ClientSettings.Scrolling.ScrollHeight = Unit.Pixel(500); 

ASPX
<div align="center">  
        <div class="page">  
            <table class="insertdata" cellspacing="0" cellpadding="0" width="100%" border="0">  
                <tr> 
                    <td class="sectionhdr" colspan="2" width="30%" align="left" style="border-bottom: 1px black solid;">  
                        Firm Profile<span style="color: #0000c0"><asp:Label ID="isd" runat="server" /></span>  
                    </td> 
                </tr> 
                <tr> 
                    <td class="spacerrow" colspan="2">  
                    </td> 
                </tr> 
            </table> 
            <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="false" runat="server">  
            </asp:ScriptManager> 
            <telerik:RadAjaxManager ID="radAjaxManager" runat="server" ClientEvents-OnRequestStart="requestStart" 
                OnAjaxSettingCreating="radAjaxManager_AjaxSettingCreating">  
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadFirmGrid">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadFirmGrid" LoadingPanelID="ajaxLoadingPanel" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
                <ClientEvents OnRequestStart="requestStart" /> 
            </telerik:RadAjaxManager> 
            <telerik:RadGrid ID="RadGrid" runat="server" ShowFooter="true" HorizontalAlign="Left" Width="100%" 
                MasterTableView-HierarchyLoadMode="ServerBind" 
                ClientSettings-AllowExpandCollapse="true" 
                Skin="Vista" AllowFilteringByColumn="true" 
                AutoGenerateColumns="False" AllowSorting="True" 
                AllowMultiRowSelection="False" AllowPaging="True" 
                OnNeedDataSource="RadGrid_NeedDataSource" OnUpdateCommand="RadGrid_UpdateCommand" 
                OnItemDataBound="RadGrid_ItemDataBound"   
                OnPreRender="RadGrid_PreRender" oninsertcommand="RadGrid_InsertCommand"   
                onitemcommand="RadGrid_ItemCommand" EnableLinqExpressions="false"   
                onitemcreated="RadGrid_ItemCreated"

But my Grid seemed not in working well with scrolling.


-Thanks

2 Answers, 1 is accepted

Sort by
0
John John
Top achievements
Rank 1
answered on 11 Feb 2010, 12:15 PM
Hi 
   
 I solved the issue i just removed the following property from the Grid section.

 

   
HorizontalAlign
="Left" 

Now it is working fine.


-Thanks

 

0
Dimo
Telerik team
answered on 11 Feb 2010, 12:51 PM
Hi John,

The HorizontalAlign ASP.NET property is rendered as an align HTML attribute, which is interpreted similarly to float by some browsers. We do not recommend using it for the RadGrid control or the MasterTableView.

All the best,
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
John John
Top achievements
Rank 1
Answers by
John John
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or