PDA

View Full Version : Custom Table Layout



harman
15 May 2012, 1:01 AM
Hi All,

I want to have a table layout as below that can be populated by data coming from controller in JSON using ajax call.

35232

Or Can we produce the same table layout using ExtJS predefined components?
How to populate HTML table using ExtJS store?

Thanks

15 May 2012, 4:37 AM
sounds like the job of an XTemplate. You technically don't need a data store if it's just one record.

harman
15 May 2012, 11:20 PM
My Bad, let me add i don't know how many rows will be there.
So i need something dynamic that creates such a structure depending upon the number of records coming.
I found a template column that can somewhat produce such a structure.
But the prob is how to make it dynamic?What if i need 3 partitions under Header4?
Can a template be generated through looping??

harman
16 May 2012, 11:10 PM
For the first level, grouping can solve the prob but can we put in multilevel grouping for the specific column?

harman
18 May 2012, 2:46 AM
XTemplate can just provide the look but not functionality. It wont be a ExtJS Cell on which i can put listeners or pickup record from store corresponding to that rowIndex etc.