MVC4를 사용하여 웹 응용 프로그램을 개발 중입니다. UI에 HandsOnTable이 있습니다. json을 사용하여 데이터를 바인딩하려고 시도했지만 기울어졌습니다. 쇼 오류를 알려주지 않습니다. 여기에 여기에 코드MVC에서 핸즈프리 테이블을 바인딩하는 방법
$.ajax({
url: "/Customer/GetSpreadSheetGrid",
type: "GET",
dataType: "json",
data: { customerId: customerID }
})
.success(function (result) {
var vSpreadSheet = document.getElementById("SpreadSheetgrid");
$("#SpreadSheetgrid").handsontable("loadData", result);
})
.fail(function (r, o) {
alert("Failed : " + r.responseText);
});
}
이고 것은 내 컨트롤러 방법
public JsonResult GetSpreadSheetGrid(int customerId)
{
IEnumerable<tblCustomerSpreadsheetInfo> resResult = null;
// Calling SP
resResult = _customer.GetCustomerCustomInfoByCustomerID(customerId);
return Json(resResult, JsonRequestBehavior.AllowGet);
}
입니다 뭐죠이 코드의 실수.
여기에서 실패하고 있습니다. 아약스 또는 손수건? – amesh