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

Frozen Column Scrolling Issues

38 Answers 769 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 21 Jul 2010, 10:44 PM

On a grid with varying sized columns, when I freeze some columns and then attempt to scroll horizontally, the grid scrolls very oddly.

For example, my grid columns that are scrollable (outside the frozen column count) are Last Name, First Name, SSN as well as many others. Last Name and First Name have 120px as their widths. The SSN is 60px wide. When I scroll to the right

The SSN "scrolls" left and assumes the size of the First Name. First Name goes left. The sizing is one issue. But several columns to the right of that appear to scroll first. This is not the desired effect.

I need to scroll by column only or by pixel or something. This scrolling effect isn't acceptable.

Declarations:

 

 

 

 

<telerik:RadGrid ID="grdList" runat="server" AllowPaging="True" AutoGenerateColumns="false" AllowAutomaticInserts="true" AllowSorting="True" PageSize="25" Height="600px" GroupingSettings-CaseSensitive ="false" EnableLinqExpressions="false" >   
  
<MasterTableView TableLayout="Auto" ClientDataKeyNames="Key" EditMode="InPlace" CommandItemDisplay="TopAndBottom" AllowFilteringByColumn="true" HeaderStyle-Font-Size="10px" ItemStyle-Font-Size="10px" FilterItemStyle-Font-Size="10px"
  
<ClientSettings
<Resizing AllowColumnResize="true" AllowRowResize="true" ResizeGridOnColumnResize="true" /> 
<Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="4" /> 
<Selecting AllowRowSelect="true" /> 
<ClientEvents OnCommand="RaiseCommand" /> 
</ClientSettings

 

 

 

Remainder of the content was omitted for brevity.

Thanks,
Matt


EDIT: To clarify, the scrolling works perfectly if I do not set FrozenColumnsCount. It scrolls basically by "pixel" I would say. But when I set FrozenColumnsCount, it is like it scrolls by pixel sorta... but "snaps" to columns. And it does not do a very good job at it.

38 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 22 Jul 2010, 12:39 PM
Hello Matthew,

The described behavior is rather expected. Please have in mind that when using frozen columns, there is one <div> with a "fake" scrollbar, which does not actually scroll the RadGrid columns, but causes them to hide and show (otherwise it is not possible to keep frozen columns always visible).

Regards,
Pavlina
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
0
Matthew
Top achievements
Rank 1
answered on 22 Jul 2010, 03:46 PM
The described behavior is completely unexpected...

Why would I want a column to resize as I scroll it? SSN was 60 px, now it is 120px. I don't want that. I would rather have the per-pixel scrolling or at least a smarter per-column scrolling. At times it appeared that the columns were hiding and then unhiding due to the different sizes... a column that has a header in it sized for 100 px, for example, appears to the end user as though it disappears when the column resizes to 20px because of the neighbor's size.

Whether it is expected or not, I would much rather just get a fix to the issue. The scrolling is funky and my client is not pleased with it. I need to use static headers and frozen columns with vertical and horizontal scrolling and allow for column widths to be completely different sizes for the entire grid. And it needs to make sense to the user when they are scrolling horizontally. At present, it does not.

Any ideas on how to resolve this?

Edit: Let me add some more symptoms of the problem. Perhaps I am not being totally clear. Assume I have columns in my grid and for sake of ease, we'll label them A-O
The grid is frozen on D so that I can see A, B, C and D at all times.
I have a horizontal scroll bar.
I scroll to the right by clicking the increaser, nothing happens.
I click again, nothing happens.
I click one more time and suddenly, I see movement. Woot, I think. Except that it did not work. Instead, of see A, B, C, D, F... I see...
A, B, C, D, E, F, G, I, J, K, L
Notice the missing H... why did H suddenly disappear? Where did it go? Is it coming back? How is this the way it is intended to work? To an end user this is not intuitive at all.
0
Matthew
Top achievements
Rank 1
answered on 22 Jul 2010, 08:42 PM
To follow up, it is definitely doing some crazy shifting in places. In my last example, column H disappears... I scroll right and it reappears but column E disappears.

Is there an option to force the first column to "disappear" to be the left most column after the last frozen column? And further, to ensure that column widths remain the same as they were (50px doesn't become 120px, etc...)? If I had the answers to these questions it would go a long way.

Thanks,

Matt
0
Pavlina
Telerik team
answered on 23 Jul 2010, 12:16 PM
Hello Matthew,

I am afraid that with the current implementation of RadGrid control this is not possible.

Best wishes,
Pavlina
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
0
David
Top achievements
Rank 1
answered on 09 Nov 2011, 09:02 PM
old thread, but I'd like to bring up the issue again. Was this ever fixed? Because I see the same problem with the current Q3-2011 RadGrid revision. The horizontal scrolling with frozen columns enabled behavior is terrible. Vertical scrolling works fine, it's smooth. But horizontally, it jerks around or does nothing at all. I click about 20 times or so and nothing happens, then suddenly it moves over a column. Why not move over a column per click? Woudln't that make sense? The only fast way to get it to move is to grab the scroll bar handle and drag it. Another confusing aspect is the rows resize themselves sometimes depending upon which columns are now visible (that slows it down too). Therefore which rows you are looking at are no longer the same rows after the grid finishes repainting itself.

I'm re-writing a grid application from 15 years ago that used MSFlexGrid. The scrolling  in that grid works perfectly. How can you say something you've developed in 2011 can't do what something in 1996 could and can still do?

I know RadGrid is more powerful and can do lots more things than MSFlexGrid can do, that's why I'm trying to utilize RadGrid. But this scrolling issue is almost a deal breaker. My grid has around 50 columns, so scrolling horizontally is essential for the end users. When I disable frozen columns, RadGrid scrolls perfectly. But that's not useful since we need to know the employee's name in column 1 and 2 at all times.

Question. is there a way to set the scrolling behavior to do this: "upon each click on the horizontal scrollbar, move the grid 1 column" and also "upon each click on the vertical scrollbar, move the grid 1 row".

I'm not trying to complain, I'm just stumped as to why such a powerful grid has such a hard time doing what seems like a simple operation (scrolling).

Thank you for your attention.


0
Pavlina
Telerik team
answered on 11 Nov 2011, 01:00 PM
Hi David,

Generally, when enabled, frozen columns functionality involves a lot of client side calculations and DOM operations in order to correctly determine which columns should be visible and which should be hidden while scrolling. In this scenario the number of columns has the greatest impact, since the more columns your grid has the more time these operations would last and hence the observed slow down. A large number of records rendered on the page along with static headers and frozen columns could also cause a slowdown in the client performance.

Regarding your question:
Currently there is no way to set the desired scrolling functionality, however I will forward your suggestion to our developers for further consideration.

Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Kiran
Top achievements
Rank 1
answered on 19 Dec 2013, 05:08 PM
Pavlina,

Is this issue resolved yet in the later versions of Telerik?  I'm using the 2013.2 version of Telerik.  Still, I see this issue.

Regards,
Kiran
0
Pavlina
Telerik team
answered on 24 Dec 2013, 03:28 PM
Hi Kiran,

I am really sorry for the inconvenience caused by this limitation. However, this is not a trivial problem but rather complicated one and it is related to the implementation of frozen columns functionality. Therefore, it is not so easy to fix this issue.
We think to make a research which will help us to change the frozen columns logic in order to fix the limitations that this functionality has. Unfortunately I can not give you an exact timeframe when we will plan this research and what would be the result of it.

Please do not hesitate to contact us if other questions or problems arise.

Regards,
Pavlina
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Mani
Top achievements
Rank 1
answered on 30 Jun 2014, 07:02 PM
Mani,

old thread, but I'd like to bring up the issue again. Was this ever
fixed?  The horizontal scrolling with frozen columns enabled behavior
is terrible. I click about 6-8 times or so and nothing happens, then suddenly it moves over a column. My requirement is to move over a column per click? Will this work? The only
fast way to get it to move is to grab the scroll bar handle and drag
it.

I'm open to any kind of suggestions, inputs.

Thank you for attention.
0
Pavlina
Telerik team
answered on 03 Jul 2014, 08:16 PM
Hello Mani,

I am sorry to say that due to the current implementation of the frozen columns the requested functionality is not supported. Please excuse us for the inconvenience.

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
SDI
Top achievements
Rank 1
answered on 16 Sep 2014, 09:09 PM
Hi Telerik, I hope this is in the pipeline and escalated to the top priority with the grid. This is one of, if not, the most widely used component and understandably, the most complex from a control development stand-point. We have a few grids in which we can not freeze the columns, because of the in ability to see the last couple columns and the scrolling delay issue. Again if the FrozenColumnsCount is set, it cant render itself correctly with the existing columns. Without this much needed function, unfortunately, we will be required to look elsewhere for another grid control. Time and money spent to swap out the control is not what we want to do. 

So can you give us a definite answer on any fix to the FrozenColumnsCount property of the grid?

Maybe a workaround with 2 grids scrolling vertically with each other, one to left has no scroll, one to right has a scroll, w/o the FrozenColumnsCount needed. Ideas? Can the vertical scroll of both grids listen to each other?

Thanks!
0
Pavlina
Telerik team
answered on 19 Sep 2014, 05:00 PM
Hello,

We understand your point of view very well. Unfortunately there is no workaround which you can use in order to fix the problem with FrozenColumnsCount property. However, we have already planned a research which will help us to change the frozen columns logic, in order to fix all the limitations that this functionality has.

Please excuse us for the inconvenience caused.

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jud
Top achievements
Rank 1
answered on 26 Sep 2014, 03:55 PM
Hi Pavlina

We are using Telerik.Web.UI_2013_1_227_Dev_hotfix and still we are facing the frozen column issues where header are static and column width are fixed for each column then horizontal scroll are disappeared. Could you let me know in which version this issue has been corrected?

Thanks.
0
Pavlina
Telerik team
answered on 01 Oct 2014, 11:44 AM
Hi,

The problem with horizontal scroll which disappears should be fixed in the version you pointed as well as in the latest official release of UI controls for ASP.NET AJAX. Therefore, in order to assist you further we need to replicate the issue first. 

Additionally, make sure that all columns have explicit pixel widths and their sum exceed the Grid width. Otherwise you will not be able to achieve horizontal scrolling.

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jud
Top achievements
Rank 1
answered on 02 Oct 2014, 02:18 PM
Hi Pavlina,

I have resolved all my issues regarding horizontal scrolling and freezing columns. Currently I am facing one out standing issue. When I hide any column by the context menu and then try to scroll left and then right the column is again re appeared .We need this functionality in our product. If you do not support then could you give me some idea how I could achieve frozen column functionality with hidden column?

Regard's
Muhammad Kashif
0
Pavlina
Telerik team
answered on 02 Oct 2014, 03:55 PM
Hello,

Unfortunately frozen columns functionality is not supported with hidden columns and this is pointed in the following article:
http://www.telerik.com/help/aspnet-ajax/grid-frozen-columns.html

Please excuse us for the inconvenience caused.

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
David
Top achievements
Rank 1
answered on 23 Jan 2015, 08:23 PM
Is this issue resolved in the later versions of Telerik? Please let me know.
0
Pavlina
Telerik team
answered on 23 Jan 2015, 09:57 PM
Hello,

I am happy to inform you that this frozen columns issue is already fixed and the fix will be included in Q1 2015 version of Telerik UI controls.

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
David
Top achievements
Rank 1
answered on 23 Jan 2015, 10:31 PM
When will be the new Q1 2015 version available?
0
Pavlina
Telerik team
answered on 24 Jan 2015, 02:28 PM
Hello,

Q1 2015 release is scheduled for the end of February.

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Pavlina
Telerik team
answered on 04 Feb 2015, 06:17 PM
Hi,

This is to let you know that since Q1 2015 Beta release (already available for download) RadGrid provides support for Frozen columns with show/hide. 

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Naresh
Top achievements
Rank 1
answered on 06 Feb 2015, 04:31 PM
I downloaded the 2015 beta trial version to see if the frozen column scrolling issue resolved. Unfortunately I still see the issue. Do I have to hide and show some columns to achieve this functionality with out issues?
0
Pavlina
Telerik team
answered on 09 Feb 2015, 03:56 PM
Hi Joy,

Do you mean that when you have frozen columns enabled and some grid column is hidden by setting its Display property to false or through the context menu and then you move then you move the scroll right and then left the hidden column appears again?

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Naresh
Top achievements
Rank 1
answered on 09 Feb 2015, 10:07 PM
when I freeze some columns and then attempt to scroll horizontally, the grid scrolls very oddly. My question is how do I fix this issue using latest version of controls?
0
Pavlina
Telerik team
answered on 10 Feb 2015, 10:05 AM
Hi Joy,

From the provided information it seems that the issue you are talking  about is not related to the fix we made. Therefore, I would ask you to record a video which demonstrates the oddly scrolling of the grid. Providing the problematic code and  specifying which is the browser version you are using would help us better understand the issue you are facing and assist you further.

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Naresh
Top achievements
Rank 1
answered on 11 Feb 2015, 04:23 PM
Hello Pavlina,
  This is not a new issue. This was already reported by other users in this same thread. Please see the above posts. I have more than 20 columns and the horizontal scroll bar with frozen columns enabled moves very slowly per click.
0
Pavlina
Telerik team
answered on 12 Feb 2015, 04:47 PM
Hello,

Indeed this issue was already reported i this thread but it is not the one that we fixed. You can check the release notes in the link below to see all the improvements we made in terms to frozen columns functionality:
http://www.telerik.com/support/whats-new/aspnet-ajax/release-history/ui-for-asp.net-ajax-q1-2015-beta-(version-2015.1.204)

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Naresh
Top achievements
Rank 1
answered on 12 Feb 2015, 05:26 PM
Any workaround for this issue with the latest version?
0
Pavlina
Telerik team
answered on 12 Feb 2015, 09:45 PM
Hello,

The only workaround in this case would be to decrease the number of columns in the grid.

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ravi
Top achievements
Rank 1
answered on 02 Dec 2015, 01:58 PM

HI Pavlina,

I am using Kendo UI Beta v2015.3.916

Same problem I am facing that if ,
I have locked some number of columns,

and when I tried to scroll the horizontally unlocked columns

Expected result: locked columns should not be flicker

Actual result: Locked columns are flickering with respect to unlocked columns

0
Pavlina
Telerik team
answered on 04 Dec 2015, 03:58 PM
Hello,

I am sorry to hear that you encounter the same problem with Kendo UI, however in order to get more accurate answer why the locked columns of Kendo UI grid are flickering I suggest you open a separate ticket for the corresponding product.

Regards,
Pavlina
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Ravi
Top achievements
Rank 1
answered on 04 Dec 2015, 05:47 PM

Hi Pavlina,

Thanks for reply I have solved the issue by updating the kendo ui version.. :)

Regards

Ravi

0
Pavlina
Telerik team
answered on 07 Dec 2015, 08:18 AM
Hello,

I am glad to hear that this problem is resolved in the latest Kendo UI version. Good luck with your project.

Regards,
Pavlina
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Karl-Heinz
Top achievements
Rank 1
answered on 23 Aug 2016, 08:17 AM

Hello,

I'm using the following Trial Version of Telerik UI for ASP.NET AJAX to evaluate the RadGrid:

2016.2.607.

 

My sample grid contains column groups for 4 rows, 2 frozen columns and 2 additional columns that are resizable. The frozen columns are assigned to the same column group.

 

Code:

<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="TelerikWebApp1._Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadAjaxLoadingPanel ID="ralpTest" runat="server" Width="100%" Height="100%">
        </telerik:RadAjaxLoadingPanel>
 
        <telerik:RadAjaxPanel runat="server" ID="rapTest" LoadingPanelID="ralpTest">
            <telerik:RadGrid RenderMode="Lightweight" ID="rgTest" runat="server" AllowSorting="false" AutoGenerateColumns="false" GroupingEnabled="true"
                AllowPaging="true" AllowCustomPaging="true" PageSize="1000" VirtualItemCount="300000">
                <ExportSettings HideStructureColumns="true" Excel-Format="Biff" IgnorePaging="true" ExportOnlyData="true" OpenInNewWindow="true">
                </ExportSettings>
                <MasterTableView TableLayout="Fixed">
                    <ColumnGroups>
                        <%-- header frozen columns --%>
                        <telerik:GridColumnGroup HeaderText="N." Name="cGrpN"
                            HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="250px">
                        </telerik:GridColumnGroup>
                        <telerik:GridColumnGroup HeaderText="D." Name="cGrpD" ParentGroupName="cGrpN"
                            HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="250px">
                        </telerik:GridColumnGroup>
                        <telerik:GridColumnGroup HeaderText="C." Name="cGrpC" ParentGroupName="cGrpD"
                            HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="250px">
                        </telerik:GridColumnGroup>
                        <telerik:GridColumnGroup HeaderText="U." Name="cGrpU" ParentGroupName="cGrpC"
                            HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="250px">
                        </telerik:GridColumnGroup>
 
                        <%-- header column 3 --%>
                        <telerik:GridColumnGroup HeaderText="N. 001" Name="cGrpN_Item_0"
                            HeaderStyle-HorizontalAlign="Left">
                        </telerik:GridColumnGroup>
                        <telerik:GridColumnGroup HeaderText="D. 001" Name="cGrpD_Item_0" ParentGroupName="cGrpN_Item_0"
                            HeaderStyle-HorizontalAlign="Left">
                        </telerik:GridColumnGroup>
                        <telerik:GridColumnGroup HeaderText="C. 001" Name="cGrpC_Item_0" ParentGroupName="cGrpD_Item_0"
                            HeaderStyle-HorizontalAlign="Left">
                        </telerik:GridColumnGroup>
                        <telerik:GridColumnGroup HeaderText="U. 001" Name="cGrpU_Item_0" ParentGroupName="cGrpC_Item_0"
                            HeaderStyle-HorizontalAlign="Left">
                        </telerik:GridColumnGroup>
 
                        <%-- header column 4 --%>
                        <telerik:GridColumnGroup HeaderText="N. 002" Name="cGrpN_Item_1"
                            HeaderStyle-HorizontalAlign="Left">
                        </telerik:GridColumnGroup>
                        <telerik:GridColumnGroup HeaderText="D. 002" Name="cGrpD_Item_1" ParentGroupName="cGrpN_Item_1"
                            HeaderStyle-HorizontalAlign="Left">
                        </telerik:GridColumnGroup>
                        <telerik:GridColumnGroup HeaderText="C. 002" Name="cGrpC_Item_1" ParentGroupName="cGrpD_Item_1"
                            HeaderStyle-HorizontalAlign="Left">
                        </telerik:GridColumnGroup>
                        <telerik:GridColumnGroup HeaderText="U. 002" Name="cGrpU_Item_1" ParentGroupName="cGrpC_Item_1"
                            HeaderStyle-HorizontalAlign="Left">
                        </telerik:GridColumnGroup>
                    </ColumnGroups>
                    <Columns>
                        <%-- frozen columns --%>
                        <telerik:GridBoundColumn HeaderText="Value 1:" DataField="Test1" DataType="System.Int32" ColumnGroupName="cGrpU"
                            AllowSorting="false" Resizable="false" HeaderStyle-Width="125px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Value 2:" DataField="Test1" DataType="System.Int32" ColumnGroupName="cGrpU"
                            AllowSorting="false" Resizable="false" HeaderStyle-Width="125px">
                        </telerik:GridBoundColumn>
 
                        <%-- column 3 --%>
                        <telerik:GridBoundColumn HeaderText="Value 3:" DataField="Test2" DataType="System.Int32" ColumnGroupName="cGrpU_Item_0"
                            AllowSorting="false" Resizable="true">
                        </telerik:GridBoundColumn>
 
                        <%-- column 4 --%>
                        <telerik:GridBoundColumn HeaderText="Value 4:" DataField="Test3" DataType="System.Int32" ColumnGroupName="cGrpU_Item_1"
                            AllowSorting="false" Resizable="true">
                        </telerik:GridBoundColumn>
                    </Columns>
                    <SortExpressions>
                    </SortExpressions>
                </MasterTableView>
                <ClientSettings>
                    <Virtualization EnableVirtualization="true" LoadingPanelID="ralpTest" InitiallyCachedItemsCount="2000" ItemsPerView="100" />
                    <Resizing AllowColumnResize="True" />
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" FrozenColumnsCount="2" />
                </ClientSettings>
            </telerik:RadGrid>
        </telerik:RadAjaxPanel>
    </div>
    </form>
</body>
</html>

 

As expected, the horizontal scrollbar is visible after increasing the width of the third column. But Scrolling to the right causes the following effect: The first 2 column groups are showing the header text of the invisible third column. Screenshots: 1_StartView.png, 2_ScrollRight.png.

 

Additionally: If the width of the third column is decreased, the scrollbar area is still visible. Screenshot: 3_ScrollbarArea.png.

 

Would it be possible to avoid this behaviour?

 

 

 

 

0
Marin
Telerik team
answered on 24 Aug 2016, 11:30 AM
Hi,

Not really. The grid needs to render a different horizontal scrollbar. When having frozen columns the widths of the columns should be adjusted so the horizontal scrollbar is always visible initially. The grid performs a lot of initializations and additional calculations on initial load so the frozen columns feature can work correctly. However if the horizontal scrollbar is not visible initially these calculations are not performed which causes the problematic behavior.
Possible workarounds are to use the client-side freeze / unfreeze options of the header context menu of the grid to set a frozen columns after the grid is loaded on the page. This can also be set by using the _toggleFreeze method of the grid column but EnableColumnClientFreeze option should be set to "true" in this case: http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/persisting-frozen-columns-client-side in this case it does not matter if the grid has initial scrolling or not.

Another option is perform a postback and fresh the page after the column resizing has completed - this way the grid will render again with the correct initialization of the horizontal scroll for frozen columns.

I hope this helps. Let me know if you have any other questions.

Regards,
Marin
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Suresh Krishna
Top achievements
Rank 1
answered on 20 Jul 2018, 10:42 AM

hi,

I'm facing a similar issue with this version 2018.2.516. 40 , This happens when FrozenColumnsCount=1 is set and the resolution of the screen is set to 1366 x768. Grid has autogenerated columns.

0
Alvin
Top achievements
Rank 1
answered on 13 Oct 2020, 07:46 PM

Pavlina,

 

Currently, I suffered the same issue when scroll horizontally to the far right column using version 2020.2.6.17. Was the problem fixed in Q1 2015 release? I also spot the same bug at the demo website of the frozen column at telerik UI for Ajax. 

0
Doncho
Telerik team
answered on 16 Oct 2020, 02:55 PM

Hi Alvin,

Thank you for the sketch!

I am afraid that the issue you are describing is not among these that have been solved in Q1 2015, see UI for ASP.NET AJAX Q1 2015

This inconsistency in the appearance is indeed expected when scrolling with frozen columns.
When the RadGrid is scrolled horizontally to its end, the sum of widths of the displayed columns could be lower than the current width of the RadGrid itself. Therefore, all the displayed columns are auto resized to fulfill the RadGrid width.

In addition, when using Frozen Columns the Static Headers need to be enabled as well and so, that will require the columns to be set to a specific width using pixels, see Scroll with Static Headers article.
A specific case in which you can avoid the issue is In case all columns have equal widths you can predefine an absolute width(in pixels) for the Grid so that it is a multiple of the column width. For instance width of columns 200px and Grid width 1200px.

If the columns are auto-generated, in order to set the width per column individually you could use the ColumnCreated event of the Grid which fires for every column, see Working with Autogenerated Columns. Or you could use the PreRender event and loop through the columns of the Grid. In that event, you will need to Rebind() the Grid once you set the Width for the columns. 

Here is a Forum post for setting the Width of auto-generated columns: Auto generated columns set width.

Kind regards,
Doncho
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Tags
Grid
Asked by
Matthew
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Matthew
Top achievements
Rank 1
David
Top achievements
Rank 1
Kiran
Top achievements
Rank 1
Mani
Top achievements
Rank 1
SDI
Top achievements
Rank 1
Jud
Top achievements
Rank 1
David
Top achievements
Rank 1
Naresh
Top achievements
Rank 1
Ravi
Top achievements
Rank 1
Karl-Heinz
Top achievements
Rank 1
Marin
Telerik team
Suresh Krishna
Top achievements
Rank 1
Alvin
Top achievements
Rank 1
Doncho
Telerik team
Share this question
or