I have a Kendo Grid on the page. When the user clicks a button, I want to send the rows (data objects) from the grid to the controller. The controller will return a partial view, which will be used as the content for a new window. I've got the window load from a partial view working using .refresh({url:}), but I'm having trouble getting the grid data sent. Seems like I should be able to use something like this, but it's not working for me:
dialog.refresh({
url: "/Controller/Action",
data: JSON.stringify({items:$("#grid").data("kendoGrid").dataItems}),
dataType: "json",
type: "POST",
contentType: 'application/json; charset=utf-8'})
On the controller I have the items parameter defined as IEnumerable<Item> but it gets a null value.