Example of Default Context Menu in Javascript (ES5) Tree Grid Control

/
/
Default Context Menu

This sample demonstrates the usage of context menu in Tree Grid component. Right click anywhere on the Tree Grid to view context menu.

More Details...

1
Planning
2/3/20172/7/20175Normal
2
Plan timeline
2/3/20172/7/20175Normal
3
Plan budget
2/3/20172/7/20175Low
4
Allocate resources
2/3/20172/7/20175Critical
5
Planning complete
2/7/20172/7/20170Low
6
Design
2/10/20172/14/20173High
7
Software Specification
2/10/20172/12/20173Normal
8
Develop prototype
2/10/20172/12/20173Critical
9
Get approval from customer
2/13/20172/14/20172Low
10
Design Documentation
2/13/20172/14/20172High
1 of 4 pages (36 items)
Description

Tree Grid has an option to show the context menu when right click on it. To configure the items in context menu, you should define either default or custom item in contextMenuItems . Each item will be shown based on its target. The default items are Edit - Edit the current record. Delete - Delete the current record. Save - Save the edited record. Cancel - Cancel the edited state. PdfExport - Export the grid as Pdf format. ExcelExport - Export the grid as Excel format. CsvExport - Export the grid as CSV format. SortAscending - Sort the current column in ascending order. SortDescending - Sort the current column in descending order. FirstPage - Go to the first page. PrevPage - Go to the previous page. LastPage - Go to the last page. NextPage - Go to the next page. Add Row Above - Add a new row above the selected row Below - Add a new row below the selected row Indent - Indents the record to one level of hierarchy. Outdent - Outdent the record to one level of hierarchy. In this demo, Context Menu feature has enabled by defining the contextMenuItems property with all default items. More information on the Default context-menu can be found in documentation section