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

Dynamic RadGrid Performance Issue with auto generated columns

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lalita P.
Top achievements
Rank 1
Lalita P. asked on 18 May 2016, 03:16 AM

Hi Team,

We have a dynamic radgrid with dynamic number of columns, which are created by binding a datatable to radgrid in code behind file. Also we have a horizontal scrollbar for moving column. Radgrid behaves ok when the auto generated column are less but when we have more than 50 column it start showing lagging in UI like horizontal scrollbar moves very slow and overall grid renders very slow on page load.

Please do let us know what can be causing this. also do let us know if you required more information.

 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 20 May 2016, 11:05 AM
Hi Lalita,

I noticed that you have also submitted a support ticket with the same query. I suggest we continue the conversation there. Nevertheless, I will paste the answer here, it can be helpful to someone observing similar behavior.

The issue that you are describing could be observed if you are loading too many records in RadGrid without enabled paging. Having huge amount of records with that amount of columns will generate too many DOM elements and it will be difficult for the browser to handle the scrolling (especially if you have frozen columns and enabled static headers). Note that the performance will be worst in IE browsers, most noticeable in Compatibility View and IE 7.

If your scenario matches the above, the only option for increasing the performance is to enable the paging functionality of RadGrid or if applicable, enable Virtual Scrolling. However, keep in mind that with 50 columns you need to limit the amount of records per page, so that less DOM elements are created for the RadGrid.


With that said please avoid submitting duplicate threads. This will enable us to keep better track of your support history and provide answers faster.

Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Lalita P.
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or