2017-04-06 70 views
0

我是kendo UI的新手。我用angularJs創建了一個Kendo網格。和我已經配置的報頭模板到grid.here代碼如何根據條件隱藏標題模板?

headerTemplate: '# if(HierarchyNo!==1){# <i class="fa fa-arrow-circle-left fa-2x" aria-hidden="true"></i> #}#', 

在這裏HierarchyNo基於該變量的範圍可變報頭模板必須顯示給我user.If然後執行該代碼有一個設計錯誤如enter image description here 我不知道哪裏出了問題。有什麼方法可以根據條件隱藏headerTemplate。請幫助我

回答

0

使用kendo.template(「您的模板與條件」)。它會解決。

+0

謝謝..你救了我的一天。 。 –