Aug 22, 2012, 5:38 AM
[CLOSED] Command Column
Hi guys,
what would be the equivalent to the code below, works in version 1 but not in 2.0. not able to get column model.
what would be the equivalent to the code below, works in version 1 but not in 2.0. not able to get column model.
var prepare = function (grid, toolbar, rowIndex, record) {
var firstButton = toolbar.items.get(0),
cm = grid.getColumnModel(),
width = cm.getColumnWidth(cm.getIndexById("CommandColumn1"));
firstButton.setWidth(width);
};
Last edited by Daniil; Aug 23, 2012 at 4:55 AM.
Reason: [CLOSED]