So for some reason with the following code my values are empty once they get to the controller.
Anyone have any ideas why?
Signature of controller.
Public Function UserDetail(userString As String) _
javascript code in view.
function openWindow() {
var grid = $("#AjaxGrid").data("kendoGrid");
var selectedData = grid.dataItem(grid.select());
var stringData = JSON.stringify(selectedData);
var window = $("#UserDetailDiv").data("kendoWindow");
var PopUpTitle = "User Detail: ";
window.setOptions({
title: PopUpTitle,
content: "Loading....."
});
$("#UserDetailDiv").data("kendoWindow").refresh({
url: "/Inquiry/UserDetail",
data: { userString: stringData },
success: function (data) {
},
error: function (xhr, textStatus, exceptionThrown) {
window.close();
alert($.parseJSON(xhr.responseText));
}
});
window.open();
window.center();
}
Anyone have any ideas why?
Signature of controller.
Public Function UserDetail(userString As String) _
javascript code in view.
function openWindow() {
var grid = $("#AjaxGrid").data("kendoGrid");
var selectedData = grid.dataItem(grid.select());
var stringData = JSON.stringify(selectedData);
var window = $("#UserDetailDiv").data("kendoWindow");
var PopUpTitle = "User Detail: ";
window.setOptions({
title: PopUpTitle,
content: "Loading....."
});
$("#UserDetailDiv").data("kendoWindow").refresh({
url: "/Inquiry/UserDetail",
data: { userString: stringData },
success: function (data) {
},
error: function (xhr, textStatus, exceptionThrown) {
window.close();
alert($.parseJSON(xhr.responseText));
}
});
window.open();
window.center();
}