Hybrid View

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Vote Rating
    webfriend13 is on a distinguished road


    Default Looping through the fields in store to find Max lenght of content for each column

    Hi All,

    I want to loop through the content of the each row for the fiven column with-in a store to find the max length of data in each column. I want to set the legth of the column based on this data. Lets say in my store I have 5 fields (column) & the store have 5 rows. First I want to loop through all the records to find out for each column which cell is holding the maximum data and then use that value to set the width with-in the grid.

    Thanks in advance

  2. #2
    Sencha Premium Member dawesi's Avatar
    Join Date
    Mar 2007
    Melbourne, Australia (aka GMT+10)
    Vote Rating
    dawesi has a spectacular aura about dawesi has a spectacular aura about

    Lead Trainer / Sencha Specialist
    Teahouse Training Company

    Comprehensive Javascript, Sencha and 3rd Party Stack Training available worldwide online, and onsite in APAC, written by certified official Sencha trainers.

    Unofficial Sites:

    SenchaWorld.com - Videos, and stuff
    Sencha.Community - Tools, Extensions and Resources
    TeahouseHQ.com - Sencha Ecosystem Training Portal

    Code Validation : JSLint | JSONLint | JSONPLint

Thread Participants: 1