如何在Jqgrid中将一个列值获取到另一列

时间:2018-09-07 08:23:35

标签: javascript jqgrid jqgrid-formatter

我想在后续列中获取IsClosed Column Cell值( Is Closed 值是Action和Closed),然后检查是否已关闭,否则返回this。我如何获取关注列中的封闭单元格值。

{ name: 'User_name', label: 'AGENT', width: 90, searchoptions: { sopt: ['cn'] } },
                { name: 'IsConnected', label: 'C', width: 30, searchoptions: { sopt: ['cn'] } },

                {
                    name: 'IsClosed', label: 'Status', width: 50, editable: true, edittype: 'select', editoptions: { value: { 'ACTIVE': 'ACTIVE','CLOSED': 'CLOSED' } }, formatter: function (cellvalue, options, rowObject) {
                            return '<span style="color:red; ;font-weight: bold;font-size: 12px; display: block; width: 100%; height: 100%; ">' + cellvalue + '</span>';
                    }
                },

                {
                    name: 'Followup', label: '', width: 50, formatter: function (cellvalue, options, rowObject, rowdata) {
                        return "<a style='color:blue; text-decoration: underline; font-weight: bold;' href='@Url.Action("Followup", "Followup")?value1=" + rowObject['RecordID']+"'>"+cellvalue+"</a>";

                    }
                },

0 个答案:

没有答案