From e71e07f0e1b882667b51a62aeb8782e67e5adc6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E8=A8=80?= <13484261295@163.com> Date: Fri, 2 Aug 2019 06:41:17 +0800 Subject: [PATCH] Update TreeGrid.php Show bugs when parentId not 0 --- TreeGrid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TreeGrid.php b/TreeGrid.php index 69b5e33..52f57ae 100644 --- a/TreeGrid.php +++ b/TreeGrid.php @@ -247,7 +247,7 @@ public function renderTableRow($model, $key, $index) Html::addCssClass($options, "treegrid-$id"); $parentId = ArrayHelper::getValue($model, $this->parentColumnName); - if ($parentId) { + if ($parentId && $parentId != $this->parentRootValue) { if(ArrayHelper::getValue($this->pluginOptions, 'initialState') == 'collapsed'){ Html::addCssStyle($options, 'display: none;'); }