PDA

View Full Version : How to Sync 2 Grid Headers to enable and drag and drop between columns?



mail2hkrish
19 Apr 2010, 10:46 PM
Re-posting in the right Sub-Forum:

Please refer http://www.extjs.com/forum/showthread.php?97273-How-to-Sync-2-Grid-Headers-to-enable-and-drag-and-drop-between-columns&p=459506#post459506
(http://www.extjs.com/forum/showthread.php?97273-How-to-Sync-2-Grid-Headers-to-enable-and-drag-and-drop-between-columns&p=459506#post459506)

Appreciate your answers.

Regards,
HKRISH

mail2hkrish
20 Apr 2010, 12:20 AM
20019



Any Quick Suggestions please. Attaching Screenshot of What exactly i am looking for.

Totals for all the Subtotals (for the entire Grid) and Subtotals (for the grouped Column ) both needed.

Please let me know how can i achieve this.

Thanks and Regards,
hKrish

mail2hkrish
21 Apr 2010, 7:20 PM
[SOLVED] This way :

grid1Var.getColumnModel().on('columnmoved',
function(cm, oindex, nindex) {
var cmTot=grid2Var.getColumnModel();
cmTot.moveColumn(oindex,nindex);

});