首页 > 语言 > JavaScript > 正文

浅谈EasyUI中编辑treegrid的方法

2024-05-06 14:45:18
字体:
来源:转载
供稿:网友

主从表,从表是一个treegrid,加载完数据后,点击节点进入编辑状态。

代码如下:
columns : [ [ {
            title : "ID",
            field : "id",
            hidden : true
        }, {
            field : "pid",
            hidden : true
        },  {
            title : "AAA",
            field : "aaa",
            width : 70,
            align : "center",
            halign : "center"
        }, {
            title : "BBB",
            field : "bbb",
            width : 70,
            align : "center",
            halign : "center",
            editor : {
                type : "combobox",
                options : {
                    data : [ {
                        "id" : 0,
                        "text" : "苹果"
                    }, {
                        "id" : 1,
                        "text" : "梨子"
                    } ],
                    valueField : 'id',

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选