I have a custom Edit button on Grid.
Upon clicking Edit, I get the selected grid data row:
function onUserOrgEdit(e) {
...
var data = this.dataItem($(e.currentTarget).closest("tr"));
...
}
Next, I need to refresh my window:
var win = $("#createUserWindow").data("kendoWindow")
win.refresh({
url: "/Admin/EditOrgRole",
data: data
});
I cannot JSON.stringify because wrong content-type is sent to controller action and asp.net core mvc not able to bind JSON correctly. I get null values in controller action.
What is the correct way to do this?
Thanks.