Menu
Download Free Trial

Unable to create new context menu items in 2.3.

Hi,
In 2.2 version, I have created context menu items for expand all, collapse all. it used work. after migrating to 2.3 version, the context menu items are not creating. please let me know anything is missing.
Calling below method after setReport(pivot):

function customizeFlexmonsterContextMenu(pivot) {
var expandAllItem = $('<li class="fm-ui"></li>');
expandAllItem.append('<span class="fm-ui" id="#fm-text-display">Expand All</span>');
var collapseAllItem = $('<li class="fm-ui"></li>');
collapseAllItem.append('<span class="fm-ui" id="#fm-text-display">Collapse All</span>');
expandAllItem.click(function(e) {
e.stopImmediatePropagation();
pivot.expandAllData();
});
collapseAllItem.click(function(e) {
e.stopImmediatePropagation();
pivot.collapseAllData();
});
$('#fm-context-menu ul').append(expandAllItem);
$('#fm-context-menu ul').append(collapseAllItem);
}

 

1 answer

Public
Ian Sadovy Flexmonster February 23, 2017

Hello Kumar,
 
Thank you for the question.
Please take a look at the following approach for 2.3 version – http://jsfiddle.net/flexmonster/9feqzm1m/
Does it work for you?
 
Regards,
Ian

Please login or Register to Submit Answer