Hi ,
After setting the various context menu parameters on the server side, I am getting an error.
"Cannot read property 'test' of undefined"
Server side code for adding context menu items is :
DiagramProperties model = new DiagramProperties();
List<ContextMenuItem> LabelSubItems = new List<ContextMenuItem>();
LabelSubItems.Add(new ContextMenuItem() { Name = "alignLabel", Text = "Align Label" });
LabelSubItems.Add(new ContextMenuItem() { Name = "updateRowLabel", Text = "Row Label", });
model.ContextMenu = new DiagramContextMenu();
model.ContextMenu.Items.Add(new ContextMenuItem() { Name = "test", Text = "Label Test" });
model.ContextMenu.Items.Add(new ContextMenuItem() { Name = "label", Text = "Label Update", SubItems = LabelSubItems });
model.ContextMenuBeforeOpen = "contextMenuBeforeOpen";
model.ContextMenuClick = "contextMenuClick";
Could you please let me know what might be the issue?
Regards,
Aravind