So, im trying to pass data to the controller action and it keeps getting there as empty even though when debugging in the data is populated before the call. Im really not sure what I'm doing wrong. I've tried make it a post instead of a get, ive tried not using url.action and just putting in the fully qualified path.
Here is the code from the 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....."
});
window.refresh({
url: "@Url.Action("UserDetail", "Inquiry")",
data: {
userString: stringData,
directCall: "T"
},
error: function (xhr, textStatus, exceptionThrown) {
window.close();
alert($.parseJSON(xhr.responseText));
}
});
window.open();
window.center();
}
Here is the signature of the action.
<ViewModelActionFilter> _
Public Function UserDetail(userString As String, directCall As String) _