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

Show/Hide columns issue with scrolling

2 Answers 146 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 23 Apr 2019, 02:10 PM

I am using RadGrid (2018.3.910.40) with the EnableHeaderContextMenu="true" to allow user to show/hide any columns of the grid.  Due to the number of columns being displayed in the grid vertical scrolling is needed.  On first load the grid displays 5 columns, if I right-click on any of these columns I can select the option "Select Columns" and a list of all the columns appear and each one is checked.  Now if I scroll to display the next 5 columns and right-click to select columns, the columns 2-4 are shown but are not checked anymore.  if I scroll again to display the next five, then columns 2-10 are no longer checked and this continue.  If I scroll to show the previous columns then those columns are shown as checked.  This happens on all browsers.

Any ideas?

 

2 Answers, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 26 Apr 2019, 11:11 AM
Hi John,

The described behavior sounds to me like Frozen Columns functionality is enabled. That is the functionality that is using the show/hide column approach to mimic the Frozen column behavior.

Double check RadGrid settings and look for a property called FrozenColumnsCount. If that has a value defined, then the functionality is enabled. Having this configured, the columns that are not in the view will be hidden (unchecked on the list). If using frozen columns, Displaying or hiding columns on load is not supported: Frozen Columns - Unsupported Scenarios

Other than the Frozen column, some custom JavaScript functions would make columns disappear, or at least un-check the items on the list even if the column is visible.

If the issue still persist, please share the grid configuration (markup & code behind) so that we can take a look and debug the application on our side.

Kind regards,
Attila Antal
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
John
Top achievements
Rank 1
answered on 30 Apr 2019, 03:18 PM

Hi Attila,

Sorry for the delay in responding, yes its the frozen column that is presenting the issue. 

Thank you for the information

john

Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
John
Top achievements
Rank 1
Share this question
or