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

Performance issue with HeaderContextMenu

1 Answer 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 2
Rich asked on 07 Feb 2009, 04:28 PM
Hi -

I have started to use the headercontextmenu so my clients can dynamically add/remove columns.  It has been a great feature, btw - especially for their ability to export just what they want.

In any event, we have a number of columns exposed to the client now (43 to be exact) - only 5 columns are displayed by default- and the right-click context menu takes a few seconds to load and render - which is a bit annoying to the user community.  Short of shortening the list, is there anyway to speed this up?  How are the menu items generated?  On the fly each time? Is it possible to cache the list after first generation?

Thanks!
Rich

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 10 Feb 2009, 09:18 AM
Hi Rich,

The header context menu items are generated on the server, however when menu is shown on the client its state is updated in order to reflect the current state of the RadGrid control. If it appropriate in your scenario you may try excluding columns which will not be visible by setting column's visible property to false, thus they should not appear into the context menu columns list.

Best wishes,
Rosen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Rich
Top achievements
Rank 2
Answers by
Rosen
Telerik team
Share this question
or