You need the parameters in Listing 2 to construct a TreeModel.
您需要清单2中的参数来构建一个TreeModel。
Look through the source code of TreeGrid and TreeModel in Listing 6 to see how expanding sub-rows work.
仔细查看清单6中的TreeGrid和treemodel源代码,看看如何展开子条目。
To get started, you need to define the query of the ForestStoreModel (an implementation of TreeModel) to return the multiple top-level items for the TreeGrid.
开始之前,您需要定义ForestStoreModel (TreeModel的一个实现)的查询来返回TreeGrid的多个顶级条目。
TreeModel is in charge of certain tasks, such as connecting to the data source, lazy loading, and querying from the Tree widget about items and the hierarchy of items.
TreeModel负责某些任务,比如连接到数据源、延迟加载、以及从Tree小部件查询条目和条目层次结构。
The TreeGrid widget itself is merely a view of the data. The real power comes with TreeModel, which represents the actual hierarchical data that the Tree widget will display.
TreeGrid小部件本身只不过是该数据的一个视图,真正的力量来自于TreeModel,它呈现Tree小部件将要显示的实际分层数据。
The TreeGrid widget itself is merely a view of the data. The real power comes with TreeModel, which represents the actual hierarchical data that the Tree widget will display.
TreeGrid小部件本身只不过是该数据的一个视图,真正的力量来自于TreeModel,它呈现Tree小部件将要显示的实际分层数据。
应用推荐