本文介绍了Ag网格-主/细节-多细节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于Ag网格主/明细,是否可以添加多个明细?在例如。

For Ag grid Master/Detail, is there a way to add more than one detail? In the eg. it only eg with one detail only.

推荐答案

听起来像您在问如何拥有一个具有多个详细信息网格的母版。

It sounds like you are asking how to have a single master with multiple detail grids.

您将需要创建自己的。
在类的模板定义中,您可以根据需要创建任意数量的详细信息网格。
在init方法中,初始化网格并设置其数据。

You will need to create your own detailCellRender class/object.In the template definition for your class, you create as many detail grids as you need.In the init method, you initialize the grid(s) and set their data.

记住!
网格仅在可见时存在。

It is very important to remember the life-cycle of a cell renderer!The grid only exists while it is visible.

这篇关于Ag网格-主/细节-多细节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 06:21