Jump to content
uniGUI Discussion Forums
rgreat

Better UniDbGrid Column AutoSize

Recommended Posts

As seen here: http://forums.unigui.com/index.php?/topic/5247-unidbgrid-autosize-column/

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;
        };       
     }
  )
}

At server side we have flex property but no minWidth property.

 

Please add minWidth property.

Share this post


Link to post
Share on other sites

×