PDA

View Full Version : [CLOSED-721] Property Grid Bug? Source and Store not in sync



genio
12 Mar 2010, 7:32 AM
Hi,

I have recently started to use Properti Grids.

Now I have found that they work pretty well, hoever, I have recently had to send the grid to my server to process,a nd found that the grid's STORE is EMPTY while the SOURCE is full of my properties.

So Much so I had to send the Source value, not the store...

Is this the correct behaviour?

Here is my code



//Property Grid and Windows
var issuanceProperties = new Ext.grid.PropertyGrid({
id: 'properties-' fundingType,
width: 300,
autoHeight: true,
source: {
'AAA - VOL': 'AAA - VOL',
'CCC - VOL': 'CCC - VOL'
},
viewConfig : {
forceFit: true,
scrollOffset: 2 // the grid will never have scrollbars
}
});

evant
18 Mar 2010, 6:47 PM
Definitely can't reproduce this:



Ext.onReady(function(){
var grid = new Ext.grid.PropertyGrid({
renderTo: document.body,
width: 300,
autoHeight: true,
source: {
'AAA - VOL': 'AAA - VOL',
'CCC - VOL': 'CCC - VOL'
},
viewConfig : {
forceFit: true,
scrollOffset: 2 // the grid will never have scrollbars
}
});
console.log(grid.getStore().getCount());
});



That prints out 2. Marking this as closed, feel free to reopen it if you can provide a working test case.