View Full Version : Finding the max length of data for each column in store

13 May 2012, 11:40 PM
Hi All,

I want to loop through the content of the each row for the given column with-in a store to find the max length of data in each column. I want to set the length 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

15 May 2012, 10:00 AM
yourStore.data.each(function(record) {