3 Oct 2010 3:58 AM #1
RowExpander with Dynamic Template
I want to create a grid with a RowExpander. The problem I am facing is that each row has different information to be displayed in the expanded area. For example, each row represents a subject and the expanded area displays the grades related to this subject (exam1, exam2, etc.) as follows:
exam2 Very Good
The problem is that i can't predict the number of grades (exams) each subject has, so a fixed template will not work in this case.
What is the best way to deal with such a case?
4 Oct 2010 3:30 AM #2
XTemplate can handle this directly. I probably have these things in a List in your model?
4 Oct 2010 3:47 AM #3
Yes, I have it as a list in the model but I don't know how the XTemplate will iterate over it.
It would be nice if you could give an example XTemplate that does this job.
4 Oct 2010 3:48 AM #4
By eduardolagares in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 11 Jul 2010, 1:21 PM
By sanjshah in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 9 Nov 2009, 1:43 AM
By chrizmaster in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 20 Apr 2009, 4:06 AM
By FlexIDX in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 6 Nov 2007, 2:42 PM