PDA

View Full Version : json dynamic column iteration



veerakishorekallam
13 Mar 2012, 8:05 AM
I have the below 2 issues trying to solve could not find any solution.
issue 1
I am trying to iterate the dynamic columns, coulums size can't be predefined, is there any provision in Extjs4 MVC to do this.

issue2
need to iterate the json object row wise , can it be done in Extjs4 MVC

I have a json of the below format

{
"A",
"B",
"C"
},
{
"x",
"y",
"z"
}

I have to display this as
col1 col2 col3
A B C
x y z

in the above case the rows and columns are not fixed.

could anybody please help me


please help me in resolving this

mitchellsimoens
13 Mar 2012, 10:57 AM
{
"A",
"B",
"C"
},
{
"x",
"y",
"z"
}

Isn't valid JSON or JavaScript.

You can go through and change the width of the columns but it would be more performant to do it upfront.