🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all hot features!
Get Free Trial

pivot creation at runtime

Closed
Albert Ryan Banez asked on January 8, 2021

Hi, 
I have a problem when creating pivot in runtime.
This is my code. As you can see, I have this variable x. I want to create grid on runtime and user can create pivot as many as he wanted. The grid and charts are showing properly but only the last grid is editable. User can only change the filter, etc in the last grid created. the first grid is not clickable and editable. How should I fix this?
 
pivot[x] = new Flexmonster({
container: “pivot-container” + x,
licenseKey: “xxx”,
componentFolder: “assets/plugins/flexmonster/”,
width: “100%”,
height: 430,
toolbar: true
});
var flex = {
“dataSource”: {
“type”: “json”, “data”: JSON.parse(obj.content)
},
“options”: {
“defaultDateType”: “date string”
}
};
pivot[x].setReport(
flex
);

2 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 8, 2021

Hello,
 
Thank you for contacting us.
 
We want to inform you that our team did not manage to reproduce the issue.
You are welcome to see the JSFiddle that we have prepared trying to achieve the described behavior.
 
We hope it helps.
 
Regards,
Illia

Public
Albert Ryan Banez January 13, 2021

okay already thanks.
 

This question is now closed