Kendo ui 如何禁用/隐藏/删除剑道UI弹出窗口中可编辑HTTP POST的字段

Kendo ui 如何禁用/隐藏/删除剑道UI弹出窗口中可编辑HTTP POST的字段,kendo-ui,kendo-grid,angular-kendo,Kendo Ui,Kendo Grid,Angular Kendo,我的模式有以下代码: schema: { model: { fields: { col1: { type: "string", editable: true, nullable: false, validation:{ required: { message: "Na

我的模式有以下代码:

schema: {
                model: {
                    fields: {
                        col1: {
                            type: "string", editable: true, nullable: false,
                            validation:{ required: { message: "Name is Required." } }
                        },
                        col2: {
                            type: "string", editable: true, nullable: false,
                            validation:{ required: { message: "Please Select a Main Language." } }
                        },
                        col3:{
                            type: "Array[]", editable: true, nullable: false,
                            validation:{ required: { message: "Please Select Supported Language(s)." } }
                        },
                        col4: {
                            type: "string", editable: false, nullable: true
                        },
                        col5: {
                            type: "string", editable: false, nullable: true
                        }
                    }
                }
            }
列代码段

{
                    field: "col4",
                    title: "Column4",
                    width:"200px",
                    editable:false,
                    nullable: true
                },
                {
                    field: "col5",
                    title: "Column5",
                    width:"200px",
                    editable:false,
                    nullable: true
                }
我想禁用最后两个(状态和未定位计数)。如您所见,我已经使用了可编辑和可空。我的目标是发送一个HTTP post,而不发送两个JSON格式的post

{"col1":"string", "col2":"string","col3":["string"]}
更新: 我使用了一个具有函数的编辑器

function(container){

  $('label[for=status]').parent().remove();

}
现在看起来像这样

{
  field: "status",
  title: "Status",
  editable:false,
  editor:function(container){
                       $('label[for=status]').parent().remove();
                   }
}

剑道方法是在剑道信息源中添加名为Edit的字段,如下所示:

edit: function (e) {
           e.container.find('[for="none"]').parent().remove();
           e.container.find('[data-container-for="none"]').remove();
 },
在那里,您将查找包含
for=“none”
的字段,并删除所有字段,容器也是如此

然后在模式中,要编辑的字段:

{
  field: "none",
  title: "Column5",
  width:"200px",
},

找到答案:)所以,如果我的第一列是Guid,并且我想对最终用户隐藏,它仍然会加载到我的视图模型中并读取。您能在此视图中显示所有代码吗?