Hi All,
I'm using JQXgrid in my web application. i wanna bind the Json string which is returned from the web method. The web method is hits successfully and returns the json but, in jqxgrid doesn;t bind the data.
My code is looks below....
Code
var url = "UserOperation.asmx/GetAllCompanies";Code
var dataAdapter = null;Code
$.ajax({Code
type: "POST",Code
url: url,Code
contentType: "application/json; charset=utf-8",Code
dataType: "json",Code
success: function (data) {Code
alert(data.d);Code
$("#jqxgrid").jqxGrid({Code
width: 700,Code
source: data.d,Code
columnsresize: true,Code
rowsheight: 30,Code
columns: [Code
{ text: 'Company Name', dataField: 'CompanyName', width: 200 },Code
{ text: 'Country', dataField: 'Country', width: 150 },Code
{ text: 'Contact No.', dataField: 'ContactNo', width: 100 },Code
{ text: 'Contact MailID', dataField: 'MailID', width: 100 },Code
{ text: 'ActiveState', dataField: 'Status', width: 100 },Code
{ text: 'Edit', width: 75, align: 'center', width: 50 }Code
]Code
});Code
}Code
});Thanks in advance


Rajeesh MenothRank #118 · 18.4K reputationPosted Nov 20, 2015, 2:42 AM EST
Sathish Kumar65 reputationPosted Nov 22, 2015, 11:36 PM EST