我想用 RowExpander 创建一个网格。我面临的问题是每一行都有不同的信息要显示在扩展区域中。例如,每一行代表一个科目,扩展区域显示与该科目相关的成绩(exam1、exam2 等),如下所示:
+数学
考试1 优秀
考试2 非常好
问题是我无法预测每个科目的成绩(考试)数量,因此在这种情况下固定模板不起作用。
处理这种情况的最佳方法是什么?
注意:如果问题中有任何不清楚的地方,请询问。谢谢你。
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