Jump to content


Photo

Better UniDbGrid Column AutoSize


  • Please log in to reply
No replies to this topic

#1 rgreat

rgreat

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 197 posts

Posted 22 January 2018 - 06:45 PM

As seen here: http://forums.unigui...utosize-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.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users