datagrid editor动态的改变不同行修改列的editor属性

 onBeforeEdit: function (row) {
                let options = $(this).treegrid('options');
                options.tempeditor = options.tempeditor || {};
                let getColumnOption = $(this).treegrid('getColumnOption', 'sampleTypeId');
                if (!options.tempeditor["sampleTypeId"]) {
                    options.tempeditor["sampleTypeId"] = getColumnOption.editor;
                }
                if (row.parentId) {
                    getColumnOption.editor = undefined;
                } else {
                    getColumnOption.editor = options.tempeditor["sampleTypeId"];
                }

            }
原文地址:https://www.cnblogs.com/871735097-/p/9913769.html