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

Toggling 'AutoGenerateGridColumns' property extremely slow

1 Answer 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 21 Sep 2015, 09:36 PM

I have RadGridView for which sometimes I create the columns dynamically in the code behind and other times automatically create the columns based on the source using the "AutoGenerateGridColumns" property of the RadGridView. In either case there are never more than 10 columns and maybe 10-20 rows. When I load for the first time in either state, it is very quick - per the usual performance of RadGridView. However, if I programmatically change the "AutoGenerateGridColumns" property of the grid (based on how the user sets it up) it works exactly as expected, however the render time is very slow. While debugging and I simply hit pause, there is a massive stack trace in the Telerik DLLs. Clearly this is not a common use case, but I think it should be fixed. It is quicker to close the popup, and re-render the whole thing rather than simply changing that property.

 

My question at this point is, is this not intended to be used this way at all? If so why? And what alternatives are present?

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 22 Sep 2015, 02:43 PM
Hi Matthew,

I tried to reproduce the behavior but I guess it with a bit simpler version. Could you check out the project attached, modify it so that it illustrates your exact scenario and send it back to me ? In that way I will be able to debug it on my side and suggest any further.   


Regards,
Maya
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
Tags
GridView
Asked by
Matthew
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or