sample code to resize automaticaly uniDbGrid columns:
thanks to Oleg by the model code.
function reconfigure(sender, store, columns, oldStore, the, eOpts)
{
Ext.each(columns,
function(column, index) {
if (!sender.columnManager) {
sender.columns[index].flex=1; /*fit width, comment to disable*/
sender.columns[index].minWidth = 150; /*min.size*/
} else {
sender.columnManager.columns[index].flex=1;
sender.columnManager.columns[index].minWidth = 150;
};
}
)
}
Demo project Attached.
uniDBGrid_Column_AutoSize.rar