Tree View with context menu with different menu item
I want to populate different menu item using context menu in tree view
This is my tree view data:
var data= [ { "id": "1", "parentid": "-1", "text": "CCA" }, { "id": "2", "parentid": "1", "text": "CCA 2007" }, { "text": "NICCA 2007", "id": "3", "parentid": "2" }, { "id": "4", "parentid": "1", "text": "CCA 2011" }, { "text": "NICCA 2011", "id": "5", "parentid": "4" } ]
Here i have to show context menu based on text
for example , i am right clicking on CCA 2007,
Here menu should populate like below
Add CA
Trusted CA
like if i right click on NICCA 2007, here menu should populate
Add Sub CA
ADD CDP
similarly
CCA 2011 and NICCA 2011
How to create context menu for this please give a right solutions
Thanks in advance
Regards
G.Lenin