Jqgrid树网格-显示最后一个子节点的单选关闭图标 [英] Jqgrid tree grid - displaying radio off icon for last child node
问题描述
我正在扩展行时从服务器端加载子节点的数据.我想在最后一级显示儿童的"ui-icon-radio-off"图标,目前在我设置loading:true,expanded:true时它显示向下的三角形.是否可以将图标更改为"ui-icon-radio-off",如下面的附件所示...
I am loading data for child nodes from server side on expanding the row. I wanted to display the 'ui-icon-radio-off' icon for children at the last level, currently it is displaying downward triangle as I set loaded: true, expanded: true. Is it possible to change this icon to 'ui-icon-radio-off' as shown in the attachment below...
推荐答案
我认为问题是您用来填充树状网格的数据 .数据应包含隐藏列的值. isLeaf
列定义该行是树节点还是叶节点.带有isLeaf: true
的行将显示为'ui-icon-radio-off'图标.
I suppose that the problem is the data which you used to fill the tree grid. The data should include the values of hidden columns. The column isLeaf
defines whether the row is a tree node or a leaf. The rows which has isLeaf: true
will be displayed with 'ui-icon-radio-off' icon.