Toggling 'AutoGenerateGridColumns' property extremely slow

2 posts, 0 answers
  1. Matthew
    Matthew avatar
    4 posts
    Member since:
    May 2013

    Posted 21 Sep 2015 Link to this post

    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?

  2. Maya
    Maya avatar
    4062 posts

    Posted 22 Sep 2015 Link to this post

    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.   

    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
Back to Top