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

[Solved] Dynamic context menu on a grid depending on the column's header

1 Answer 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marco Miccini
Top achievements
Rank 1
Marco Miccini asked on 17 Feb 2010, 06:48 AM
Dear all,
I need to show a different context menu on a grid depending on the columns'header (I cannot rely on the column's index).
Moreover, after the selection of the corresponding menu I need to read the selected value on the grid and to apply new values on the entire column.
Any help?

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 22 Feb 2010, 06:02 AM
Hello Marco,

One possible approach to handle the required functionality would be to show the menu in a manner similar to this one:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandmenu/defaultcs.aspx?product=grid

Additionally, since the context menu is not shown on a per cell basis, but rather for the row, you will need to add some extra code to keep track of the currently active cell. This may be something similar to the approach demonstrated here:

http://www.telerik.com/help/aspnet-ajax/grdselectingcells.html

I hope this information gets you started properly.

Regards,
Yavor
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Marco Miccini
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or