PDA

View Full Version : Right-side grid works incorrectly when locked tree node are collapsed



TRISH
21 Jul 2016, 11:09 PM
- Sencha Ver. : Ext JS 4.2
- IE : IE11

-Issue : Right-side grid works incorrectly when locked tree node are collapsed.
What's the solution?

- You can reproduce with following step.
1. There is tree grid with locked:true.(first column is locked)
2. [left-side]Expand a node which have many leaves.
( IF the node doesn't have many leaves, right-side grid works CORRECTLY.)
3. [left-side]Collapse the node.
4. Left-side grid works collectly. But Right-side grid works incollectly.
Row Count in Right-side is smaller than Left-side.



Ext.onReady(function() {

//Ext.ux.tree.TreeGrid is no longer a Ux. You can simply use a tree.TreePanel
var grid = Ext.create('Ext.tree.Panel', {

store : store,
plugins: [{
ptype: 'bufferedrenderer'
}],
renderTo : Ext.getBody(),
width : document.width,
columnLines : true,
resizeHandles : true,
useArrows : true,
rootVisible : false,
loadMask : true,
invalidateScrollerOnRefresh: false,
autoScroll : true,
viewConfig: {
stripeRows : false,
enableTextSelection : true,
deferEmptyText : false,
emptyText : v_gridmsg, //'No DATA.',
getRowClass: function(record, index) {
var result1 = record.get('KEY_01');
var result2 = record.get('KEY_02');
var result3 = record.get('KEY_03');
var result4 = record.get('KEY_04');
var result5 = record.get('KEY_05');

if (result1 == "SUMME")
return 'grid-row-result-all'
else if (result1 == "SUMME" || result2 == "SUMME" || result3 == "SUMME" || result4 == "SUMME" || result5 == "SUMME")
return 'grid-row-result'
}
},

height: '300',

columns: [
{ xtype: 'treecolumn', text: 'KIND', width: 160, sortable: true, dataIndex: 'STR_01', style:'text-align:center', locked:true }
,{ text : 'Total,
columns: [
{ text : 'Sum', width : 100, dataIndex:'STR_02', align:'right', sortable: true, style:'text-align:center' }
,{ text : 'Qty', width : 100, dataIndex:'STR_03', align:'right', sortable: true, style:'text-align:center' }
]}
:
:

Gary Schlosberg
22 Jul 2016, 10:51 AM
I couldn't find any existing bug reports that match this behavior. Are you able to recreate this in a test case?
https://fiddle.sencha.com/#home