Under Review
Last Updated: 14 Aug 2023 12:37 by ADMIN
Created on: 02 Aug 2023 21:30
Category: Grid
Type: Bug Report
AllowScroll Property on a RadGrid prevents Template Columns from exporting.
When a RadGrid has the "AllowScroll" property set to True and is populated via a DataSourceID, calling the ExportToExcel() method on the grid results in the grid immediately rebinding. This undoes any changes made to the grid, like during the recommended way to export Template columns. When AllowScroll=False, the grid does not rebind and Template columns are exported, as expected.
Posted on: 14 Aug 2023 12:37

Hi Matthew,

My name is Doncho and I am a support officer in the Telerik UI for ASP.NET AJAX team.

We changed the product of this thread to ASP.NET AJAX so it corresponds to its topic.

Now to the point:

Enabling sorting should normally have no impact on the exporting behavior of RadGrid and should not be a reason for additional rebinding. On the other hand, if paging is enabled and also the IgnorePaging export setting is switched on, this would lead to an additional rebind as described in the current case. This case is addressed in the last message posted in the forum you are referring to:

I assume that the current scenario could be different than the one I am assuming with the suggestion above so I would ask you to share some additional information.

Could you please share the markup declaration of the RadGrid control along with the relevant code-behind logic? That way I can get a better understanding of the specific scenario and assist you more accurately with it.

Looking forward to your reply.

Kind regards,
Progress Telerik

Heads up! Telerik UI for ASP.NET AJAX versions for .NET 3.5 and 4.0 are retired. Progress will continue shipping assemblies compatible with .NET 4.5 and later. See whether this affects your apps in this article.
Posted on: 10 Aug 2023 20:50
I selected the incorrect category when making this, the issue is with the ASP.NET Ajax RadGrid.
Dess | Tech Support Engineer, Principal
Posted on: 04 Aug 2023 05:08

Hello, Matthew,

I am sorry to hear that you are experiencing any difficulties with the RadGridView control from the Telerik UI for WinForms suite. However, the referred forum post seems to be relevant for ASP.NET Ajax. Could you please confirm which is the correct product you are using?

In case of using the WinForms RadGridView, note that the GridViewSpreadExport is the appropriate way to export the grid's content. It utilizes our RadSpreadProcessing library to export the content of RadGridView to xlsx, csv, pdf and txt formats.

As to the AutoScroll property, note that it is inherited from the Control class and it shouldn't be used in RdaGridView or any RadControl since it shows the standard WinForms scrollbar. It has different look compared to the Telerik scrollbar. RadGridView has its own scrollbar in the internal elements structure. So, if it is needed,  it will be shown out of the box.

In case you are still experiencing any further undesired behavior, it would be greatly appreciated if you specify the exact steps how to reproduce the problem or get back to me with a sample project so I can investigate the precise case. Thus, we would be able to investigate the precise case and provide further assistance. Thank you in advance.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.