为什么grid.appScope.value在celltemplate中返回undefined

问题描述 投票:0回答:1

在grid celltemplate中,我正在尝试获取一个像这样的网格父范围内的值

<div sigef-entrees-sorties="grid.getCellValue(row, col)" 
  type-flux="grid.appScope.typeFlux"/>

grid.appScope.typeFlux未定义。那么我怎样才能获得这个价值。

谢谢。

angularjs angular-ui-grid celltemplate
1个回答
-1
投票

我想你正试图访问parentRowUi-grid子树。

我也面临着这个问题; appscope.rowundefined,但我这样解决了:

我们有row.treeLevelrow.treeNode.parentRow。这些将给我们TreeLevel及其父行对象。

这将有助于获得父Row。

© www.soinside.com 2019 - 2024. All rights reserved.