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

Custom Column Context Menu

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 26 Sep 2012, 03:51 PM
Hello,
I want to create a context menu that simply includes delete (which will call a function that will fire a stored proc to remove info from the dbase)  for the time being when I right click on a column.  I have the context menu currently displaying when I click on right click on the column and it includes all the standard items, hide, group, etc which I have hidden currently but I cannot figure out how to add a custom item to the menu.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 01 Oct 2012, 11:14 AM
Hello Aaron,

I believe it will be very helpful if you check out the following demo:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandmenu/defaultcs.aspx?product=grid

Generally you could add items to the HeaderContextMenu on server side as demonstrated in this topic:
http://www.telerik.com/help/aspnet-ajax/grid-header-context-menu.html
or on client side using OnHeaderMenuShowing client event of RadGrid and the approach explained in the demo below:
http://demos.telerik.com/aspnet-ajax/menu/examples/programming/addremovedisableitemsclientside/defaultcs.aspx

I hope this will prove helpful.

Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Aaron
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or