HCY777 2015-12-17 12:17 采纳率: 0%
浏览 2955
已采纳

easyUI treegrid 加了一列radio button 怎么获取radio的值?

图片说明
获取到的orgtype是undefined
代码如下:

 <th data-options="field:'orgtype',width:80,formatter:formatP">类型</th>
        function formatP(value){
                var s = '<input type="radio" value="1">分行'+
                '<input type="radio" value="2">支行'+
                '<input type="radio" value="3">网点';
            return s;
        }

        t.treegrid('endEdit', editingId);
        var row = t.treegrid('getSelected');
        var url = "/ABC/orgUnitPriceMain?flagS=" + flagS;
                if (row) {
                    $.post(url, {
                        id : row.id,
                        code : row.code,
                        orgname : row.orgname,
                        price : row.price,
                        parentName : row.parentName,
                        orgtype : row.orgtype               
                        }
                    })
                }
  • 写回答

1条回答 默认 最新

  • devmiao 2015-12-17 15:40
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?