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,246
    Vote Rating
    87
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."