Open khalildiouriadservio opened 8 years ago
I don't have much experience with Angular/Typescript, but you shouldn't need to call initGlobalCustomControls
yourself;
var gm = jQuery("#mycanvas").gridmanager().data('gridmanager');
should initialize the grid and parse the content within the canvas;
even if I remove it ,I get always the same problem I need just to know how to configure gm.initDefaultButtons to avoid the multiplication of buttons
I added a gridmanager (jquery) to my project angular2 using typescript in my ngAfterViewInit I added this
this.gm = jQuery("#content").gridmanager().data('gridmanager'); this.canvas = this.gm.$el.find("#" + this.gm.options.canvasId); this.gm.initGlobalCustomControls();
to init my grid, so when I navigate to open again my div where I have the grid the button Add Edittable Region multiply every time I navigate and come back to grid page I found that the button Add Edditable Refion multiplied`gm.initDefaultButtons = function () {