Hey everyone. I have a main grid which saves pdfs and excel files just fine, but another grid which i have inside of a kendo window returned from a partial view does not. However the pdf export works just fine, whereas the excel export only shows the headers.
The only difference I can see is that my second grid has no read method, but rather has its contents returned from an ajax call.
Sample code for popup:
function openQuarterlyGrid(params) {
(...)
var data = {
(...)
};
// get the view, load content to kendo window
$.ajax({
type: 'POST',
url: '@Url.Action("ReadQuarterlyGrid", "Grid")',
data: data,
datatype: "html",
success: function (e) {
wnd.setOptions({
title: '',
height: '600',
width: '868',
modal: true
});
// open and center window
wnd.open().center();
// set the window content
wnd.content(e);
},
error: function () {
(...)
},
complete: function (xhr, status) {
(...)
}
});
}
controller method:
[HttpPost]
public ActionResult ReadQuarterlyGrid(...){
(...)
return PartialView("Grids/QuarterlyGrid", model);
}