如何将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是客户端还是服务器端?