如何将json返回的数据绑定到asp.net中的jquery gridview?

问题描述 投票:0回答:1

如何将json对象d返回的数据绑定到jquery网格?我尝试过使用asp.net gridview但是失败了。我已经看到了jquery网格的一些链接,但我的aspx中没有可用的源代码,这就是我所做的:

function get(strcode) {

    $.ajax({
        type: "POST",
        url: "Default.aspx/MyMethod",
        data: "{'Code':'" + strcode + "'}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (result) {
            // Here i want to bind the gridview to the values contained in d
            //also the values in d are dynamic means i am getting them from the datatable
        }
    });
}

谢谢。我对jqgrid也很困惑。是jqgrid是免费的,jqgrid是客户端还是服务器端?

jquery asp.net json jquery-plugins jqgrid-asp.net
1个回答
0
投票

你可以使用很多jQuery插件

  1. jQuery DataTable
  2. JQ Grid

您可以访问那里的网站,您也可以获得Json数据的示例。

© www.soinside.com 2019 - 2024. All rights reserved.