RowExpander With Dynamic Content
I want to create a grid with a RowExpander. T开发者_Go百科he 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:
+math
exam1 Excellentexam2 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?
Note: if there is anything unclear in the question please ask. Thank you.
You actually have several options.
There is the Extended RowExpander that allows complexs widgets : GXT Widget expander
Or you could use and XTemplate with a nested TPL to iterate over the exams as per :
(I know that thread is for ext-js but the same principles apply to GXT XTemplates) Advanced XTemplate features
精彩评论