how to bind the data returned by json to jquery gridview in asp.net?

6.2k views Asked by At

How can i bind the data returned by json object d to jquery grid ? I have tried using asp.net gridview but failed. I have seen some links of jquery grid but no source code is available in my aspx this is what i have done:

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
        }
    });
}

Thank you. also i have very confusion regarding jqgrid. is jqgrid is free and is jqgrid is client side or server side?

1

There are 1 answers

0
शेखर On

There are many jQuery plug-ins which you can use like

  1. jQuery DataTable
  2. JQ Grid

You can visit there site where you can get the example for Json data as well.