I am working on an extjs 4.2 app in with php mysql backend. I have a json response with student name, Exam, subject, Marks in one row. Same are sent by mysql Database. I am trying to reconfigure grid as shown below:

So essentially marks of Sem-1 and English are part of one record. However, marks of Sem-2 and English are part of second record. So far I can show subjects and semesters. Semesters can be shown in grid column reconfigure as well. But my understanding is one complete record can be shown in a row. Maybe done through grid tpl. Can you please help me. If changes in json are required, we can do that as well
currently My json is {"data":[{"MarkID":20,"studentID":2,"ExamName":"Semester-1","Subject":"Science","MaxMarks":100,"MarksRecvd":15},{"MarkID":21,"studentID":2,"ExamName":"Semester-2","Subject":"Social Science","MaxMarks":100,"MarksRecvd":25}]}
So every subject-Semester combination is a record and I can easily display every record in grid.
However I am looking to combine marks of various semesters in one subject...so in a way @TheShalit is right that json can b changed and all marks are displayed in one row
subject | sem1 | sem2 |as grid headers andname : subjectas group.Check this out:docs.sencha.com/extjs/4.2.0/#!/example/build/KitchenSink/… - Dev