Results 1 to 2 of 2

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    221
    Vote Rating
    2
      0  

    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
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,098
    Vote Rating
    58
      0  
    Senior Sencha Trainer / Sencha Specialist

    ExtJs Developer since 0.2.2 - Champion of the 1 developer licence.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •