PDA

View Full Version : Tree Grid Issue when using minified js (Urgent)



ankits
26 Mar 2015, 10:21 PM
Hi,

1. I have a Tree grid Panel. I am not able to show the data on the screen when using minified js. The data is rendered to the Tree Store but is not displayed on the screen. However, it shows the Tree Grid Column Headers, but not the data in the tree grid.
Below is the small snippet of the code :

treeGrid.getStore().getRootNode().appendChild(treeGridData);
treeGrid.getStore().sync();

2. However, when I am running the same code without the minified js, all is working fine.

Please request someone to help me on the same. I am stuck badly since past 5 days and any help would highly appreciated.

yeghikyan
27 Mar 2015, 12:42 AM
How may we help you without seeing your code and doing the same minification process?

ankits
27 Mar 2015, 4:27 AM
Hi yeghikyan,

I have attached the Tree Store and Tree Panel for your reference.

I am appendingChild to the Root Node in the Controller using the below code:


var treeGridData = new Array(); var treeGridCount = 0; for (i = 0; i < records.length; i++) { records[i].data['dependencies'] = records[i].data['status']; delete records[i].data['status']; }

treeGrid.getStore().getRootNode().appendChild(treeGridData);treeGrid.getStore().sync();

Also I am performing minification using Ruby and Sencha Cmd.
I am new to Extension JS.

Please let me know if you need more details.