【问题标题】:KendoUI Grid dataSource to jsonKendoUI Grid 数据源到 json
【发布时间】:2012-11-01 15:03:09
【问题描述】:

从 Grid 获取数据作为 json 对象时出错

$('#AttachmentsGrid').data('kendoGrid').dataSource.view().toJSON()

TypeError: $("#AttachmentsGrid").data("kendoGrid").dataSource.view().toJSON 不是函数

【问题讨论】:

  • 您的语法看起来不错。你能添加更多代码吗?

标签: javascript json asp.net-mvc-4 kendo-ui


【解决方案1】:

使用

JSON.stringify($('#AttachmentsGrid').data('kendoGrid').dataSource.view())

【讨论】:

    猜你喜欢
    • 2013-03-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多