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

HeaderContextMenu Column Selection Bug

5 Answers 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Quattro Formaggi
Top achievements
Rank 1
Quattro Formaggi asked on 07 Mar 2012, 12:18 PM
I believe I've found a serious bug in the Show/Hide Columns section of the RadGrid's HeaderContextMenu. I've a Grid with multiple autogenerated columns. The grid has so many columns that the horizontal scrollbar is visible. When I open the Header Context Menu, go to the Columns section and uncheck some of the columns, those columns get hidden without problems. Until here, there are no problems. But when I scroll to the right and then back to the left, the columns that were hidden before are visible again. When I reopen the Header Context Menu I can see that those columns are still unchecked. They are unchecked but they are still visible.

I was trying to add to new items to the header context menu, under the Columns section. These items are Check All and Uncheck All. Actually I believe that this has to be out of the box feature of the RadGrid but unfortunately it's missing as far as I know. Assuming that you have let's say 40 columns, you can't expect the user to make 35 clicks, when the user wants to hide 35 columns to focus only on 5 columns. So somehow I managed to add this feature myself and when I found the bug I've explained above, I first thought that I've caused this strange behaviour but then I tried the same on another grid where I didn't add that Check All/Uncheck All feature and saw that the strange behaviour or bug was still there. So it didn't depend on my additional feature.

I'm using the latest version of the Ajax controls (2012 Q1) Did someone else experience such a problem? Thanks in advance...

5 Answers, 1 is accepted

Sort by
0
Quattro Formaggi
Top achievements
Rank 1
answered on 07 Mar 2012, 01:41 PM
After further examination of the above issue I've found out that the bug only appears if you set UseStaticHeaders="true" in the ClientSettings -> Scrolling section of the grid. Since the Static Headers functionality is indispensable in my case, the problem still continues for me...
0
Antonio Stoilkov
Telerik team
answered on 12 Mar 2012, 10:34 AM
Hello Quattro,

Could you please verify if you are using Frozen Columns? Having hidden columns (with Display property set to false) or hiding/showing columns and frozen columns are not supported at the same time. Hidden columns reappear after scrolling. Additionally, you could go through the help article below for more information on the topic.

Kind regards,
Antonio Stoilkov
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
Quattro Formaggi
Top achievements
Rank 1
answered on 12 Mar 2012, 11:08 AM
Hi Antonio,

Yes indeed, I'm using Frozen Columns. I'm sorry that I didn't notice the fact that you have already mentioned this issue in your documentation as an unsupported scenario. Then of course I can't say that it is a bug. But, although I appreciate the complexity of the Frozen Columns feature, I still believe that this scenario should be supported because the reason why we want to use the Frozen Columns and Column Hiding together is that we have too many columns in the grid. Sometimes the user wants too see all columns and sometimes he or she wants to hide some of them to focus on the rest of the columns. Also this is the reason why I wanted to implement a feature to give the user the opportunity to Uncheck All columns to hide them all and then only Check the ones he or she wants to have displayed on the grid. Do you know whether these issues will be implemented in the forthcoming releases?

Best regards,

Quattro Formaggi
0
Antonio Stoilkov
Telerik team
answered on 15 Mar 2012, 07:32 AM
Hi Quattro,

We appreciate your opinion as a customer. I want to assure you that I passed your feature request to our developers for future consideration. Decisions for future implementations are taken based on the customer demand rates and the controls need. Note that developing such functionality will mean to rewrite the hole functionality which will be done if more customers request this.

Regards,
Antonio Stoilkov
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
Quattro Formaggi
Top achievements
Rank 1
answered on 15 Mar 2012, 11:45 AM
Hi Antonio,

Thank you for your support. I hope that other users will request the same functionality and it will be added to the Rad Grid component in the very near future...

Best regards,

Quattro Formaggi
Tags
Grid
Asked by
Quattro Formaggi
Top achievements
Rank 1
Answers by
Quattro Formaggi
Top achievements
Rank 1
Antonio Stoilkov
Telerik team
Share this question
or