gpt4 book ai didi

javascript - CRUD Kendo、批量更新网格返回数据为空

转载 作者:行者123 更新时间:2023-11-28 06:58:57 24 4
gpt4 key购买 nike

我有这个架构,

  schema: {
data: "d.Data", // web methods return JSON in the following format { "d": <result> }. Specify how to get the result.
total: "d.Total",
model: {

运输中:

update: {
url: "VisorEuroProv.aspx/Update", //specify the URL which should create new records. This is the Create method of the Products.asmx service.
contentType: "application/json; charset=utf-8", // tells the web method to serialize JSON
type: "POST" //use HTTP POST request as the default GET is not allowed for web methods
//complete: function(e) { $("#grid").data("kendoGrid").dataSource.read()}

},

和WebMethod

 [WebMethod]
public static void Update(IEnumerable<dtoVisorEuroProveedores> dtoVisorEuroProveedores)
{...}

更新工作正常,但无法关闭 BatchEdit,显示 javascript 错误:未捕获的类型错误:无法读取 null 的属性“数据”

最佳答案

最后我返回一个 IEnumerable< myObject > 的 List()变量。

关于javascript - CRUD Kendo、批量更新网格返回数据为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32313680/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com