Jqgrid树网格-显示最后一个子节点的单选关闭图标 [英] Jqgrid tree grid - displaying radio off icon for last child node

查看:95
本文介绍了Jqgrid树网格-显示最后一个子节点的单选关闭图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在扩展行时从服务器端加载子节点的数据.我想在最后一级显示儿童的"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.

您可以在此处此处,例如 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆