Sherzod Posted April 9, 2022 Share Posted April 9, 2022 On 3/23/2022 at 3:09 AM, Sherzod said: colIndx = 1; // second column for example column = columns[colIndx], dataIndex = column.dataIndex, spanCell = null, spanCount = null; spanValue = null; for (var row = 0; row < rowCount; ++row) { var cell = view.getCellByPosition({ row: row, column: colIndx }).dom, record = store.getAt(row), value = record.get(dataIndex); if (spanValue != value) { if (spanCell !== null) { spanCell.rowSpan = spanCount; } //Ext.fly(cell).setStyle('display', ''); Ext.fly(cell).query('.x-grid-cell-inner')[0].style.display=''; spanCell = cell; spanCount = 1; spanValue = value; } else { spanCount++; //Ext.fly(cell).setStyle('display', 'none'); Ext.fly(cell).query('.x-grid-cell-inner')[0].style.display='none'; } } if (spanCell !== null) { spanCell.rowSpan = spanCount; } You can repeat this part several times inside the function by specifying different indexes colIndx = xx 1 Quote Link to comment Share on other sites More sharing options...
loQsoft Posted April 16, 2022 Share Posted April 16, 2022 Thank you very much @Sherzod 1 Quote Link to comment Share on other sites More sharing options...
CiceroBillo Posted May 3, 2023 Share Posted May 3, 2023 On 4/8/2022 at 9:36 PM, Sherzod said: You can repeat this part several times inside the function by specifying different indexes colIndx = xx Hi @Sherzod! Can I center vertically the value of merged Cells? If so, how to do this? TIA Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 3, 2023 Share Posted May 3, 2023 1 hour ago, CiceroBillo said: Can I center vertically the value of merged Cells? If so, how to do this? Hello, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.