剑道网格,jsp,spring rest CRUD,可编辑false用于更新
使用剑道网格jsp和SpringREST。正在尝试将唯一字段设置为只读以进行更新剑道网格,jsp,spring rest CRUD,可编辑false用于更新,rest,jsp,spring-mvc,kendo-ui,kendo-grid,Rest,Jsp,Spring Mvc,Kendo Ui,Kendo Grid,使用剑道网格jsp和SpringREST。正在尝试将唯一字段设置为只读以进行更新 <kendo:dataSource pageSize="5" page="1" serverPaging="true" serverSorting="true" serverFiltering="false" requestEnd="onRequestEnd" requestStart="onRequestStart" error="onError"> <kendo:dataSource-tra
<kendo:dataSource pageSize="5" page="1" serverPaging="true" serverSorting="true" serverFiltering="false" requestEnd="onRequestEnd" requestStart="onRequestStart" error="onError">
<kendo:dataSource-transport>
<kendo:dataSource-transport-create url="${createUrl}" type="POST" dataType="json" contentType="application/json" />
<kendo:dataSource-transport-read url="${readUrl}" type="POST" dataType="json" contentType="application/json"/>
<kendo:dataSource-transport-update url="${updateUrl}" type="POST" dataType="json" contentType="application/json" />
<kendo:dataSource-transport-destroy url="${destroyUrl}" type="POST" dataType="json" contentType="application/json" /><kendo:dataSource-transport-parameterMap>
<script>
function parameterMap(options,type) {
return JSON.stringify(options);
}
</script>
</kendo:dataSource-transport-parameterMap>
</kendo:dataSource-transport>
但我得到了以下问题
e、 模型未定义
通过实现函数handle_edit(e)解决
function onRequestStart(e) {
alert("e.model::"+e.model);
if (!e.model.isNew()) {
e.container.find("td:eq(3)").text(e.model.ViewSuffix);
}
}
if (!e.model.isNew()) {
e.container.find("input[name='field']").attr("readonly", true);
}