newbie.scott
30 Aug 2011, 8:08 AM
How To: Auto Resize GridPanel Column Width + Read all Column Values in a Grid in Ext JS4
Hi All,
I am newbie, Its only been a week since i started learning ExtJS, so please accept my dump questions.
I have been thorugh the tutorials, forum discussions, source code, yet I
haven't found solution I am looking for, or i might have missed, so any
help would be great.
Problem 1: Is there anyway I can automatically set gridpanel column width,
based on retruned column data values (column width = max data value
string length)
Problem 2: To achive above, I need to know how i can get values of
particular grid column? Once i know the logic, should implement it as column
renderer function? Would column renderer function is called every time, a data
record is read (then its overkill)?, in that case is there any other function I can override?
I understand that this question been asked many times in the
forum, but most of the solutions ( Grid Column Width Calculator,
autoResizeColumns,etc) i found are for previous versions, am using EXTJS4 version
Thanks in advance
Newbie Scott
Hi All,
I am newbie, Its only been a week since i started learning ExtJS, so please accept my dump questions.
I have been thorugh the tutorials, forum discussions, source code, yet I
haven't found solution I am looking for, or i might have missed, so any
help would be great.
Problem 1: Is there anyway I can automatically set gridpanel column width,
based on retruned column data values (column width = max data value
string length)
Problem 2: To achive above, I need to know how i can get values of
particular grid column? Once i know the logic, should implement it as column
renderer function? Would column renderer function is called every time, a data
record is read (then its overkill)?, in that case is there any other function I can override?
I understand that this question been asked many times in the
forum, but most of the solutions ( Grid Column Width Calculator,
autoResizeColumns,etc) i found are for previous versions, am using EXTJS4 version
Thanks in advance
Newbie Scott