Hybrid View

  1. #1
    Sencha User zeroed's Avatar
    Join Date
    Aug 2008
    Location
    Washington DC
    Posts
    135
    Vote Rating
    0
    zeroed is on a distinguished road

      0  

    Default Grid column autosize

    Grid column autosize


    I have a grid with the following data model:

    Code:
    this.columns = [
      {header: "TypeId", width: 20, locked:true, sortable: false, dataIndex: 'typeId', hidden: true},
      {header: "Item Type", width: 20, locked:true, sortable: false, dataIndex: 'itemType', hidden: true},
      {header: "", width: 3, locked:true, sortable: false, dataIndex: 'descriptiveIcon', renderer: this._renderStateIcon},
      {id:'type',header: "Type", width: 20, sortable: false, dataIndex: 'type', renderer: this._renderTypeName.createDelegate(this)},
      {header: "Element", width: 20, sortable: false, dataIndex: 'element'},
      {header: "Change", width: 20, sortable: false, dataIndex: 'change'},
      {header: "New value", width: 20, sortable: false, dataIndex: 'newValue'},
      {header: "Old value", width: 20, sortable: false, dataIndex: 'oldValue'},
      {header: "Change description", width: 40, sortable: false, dataIndex: 'changeDescription'}
                ];
    Is it possible to autosize "Item Type" column according to it's largest content?

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    You could borrow some code from my dblclick-to-auto-size-column plugin.

  3. #3
    Sencha User zeroed's Avatar
    Join Date
    Aug 2008
    Location
    Washington DC
    Posts
    135
    Vote Rating
    0
    zeroed is on a distinguished road

      0  

    Default


    Good, thanks a lot!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar