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

Horizontal Scroll Problem in Chrome

4 Answers 181 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pete
Top achievements
Rank 1
Pete asked on 28 Nov 2010, 06:37 PM
Hello,
I have a RadGrid in which I'd like to use AutoScroll. For large datasets, horizontal scrollbar extends way beyond the last column, and the result is scrolling over lot of empty space. I am NOT seeing this issue in IE or Firefox, only Chrome. Below is my client-side code:

<telerik:RadScriptManager ID="ScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" />
 
<telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">
    <AjaxSettings>
         <telerik:AjaxSetting AjaxControlID="datasetGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="datasetGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel
     id="RadAjaxLoadingPanel1"
     Transparency="25"
     runat="server">
     <asp:Image id="Image1" runat="server" ImageUrl="~/Content/Images/spinner.gif"></asp:Image>
</telerik:RadAjaxLoadingPanel>
    <div id="datasetGridContainer">
        <telerik:RadGrid
            ID="datasetGrid"
            OnSortCommand="datasetGrid_Sort"
            OnPageIndexChanged="datasetGrid_PageIndexChanged"  
            OnItemCommand="datasetGrid_ItemCommand"         
            AllowSorting="True"
            AllowPaging="True"
            AllowCustomPaging="true"
            OnNeedDataSource="datasetGrid_NeedDataSource"
            AllowFilteringByColumn="true"
            PageSize="100"
            runat="server"
            GridLines="None"
            Width="100%"
            OnPreRender="datasetGrid_PreRender"
            >
            <PagerStyle AlwaysVisible="true" />
            <ClientSettings>
           <Scrolling
             AllowScroll="True"
             UseStaticHeaders="True"
             ScrollHeight="480px" />
         </ClientSettings>
        </telerik:RadGrid>
    </div>

Let me know if you'd like more information.
Regards
Pete

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 29 Nov 2010, 10:19 AM
Hi Pete,

I suspect that you need to set the FilterControlWidth property of all datetime columns to a pixel value, as it is done in this online example:

RadGrid Filtering Demo

WebKit-based browsers have problems with displaying 100%-wide tables inside inline-block elements with percentage width.

Sincerely yours,
Dimo
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Pete
Top achievements
Rank 1
answered on 13 Dec 2010, 12:17 AM
Cheers Dimo. It looks like it is date fields that are causing the problem.
I'm using AutoBinding, what event handler should i set this property in?
Thanks
Pete
0
Dimo
Telerik team
answered on 13 Dec 2010, 04:41 PM
Hi Pete,

If your columns are autogenerated, you can set FilterControlWidth in the ColumnCreated event:

http://www.telerik.com/help/aspnet-ajax/grdusingcolumns.html

(see "Customizing Columns Programmatically")

Regards,
Dimo
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Pete
Top achievements
Rank 1
answered on 13 Dec 2010, 06:27 PM
Brilliant, fixed it!
Cheers Dimo
Tags
Grid
Asked by
Pete
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Pete
Top achievements
Rank 1
Share this question
or