i'm tryin export kendo grid excel: tried method:
but have kendo grid gets data on button click. want button excel grid datas on export button click mentioned in jsfiddle.
@(html.kendo().grid<kendogridexportexcelmvc.models.sales>() .name("sale") .columns(columns => { columns.bound(p => p.r).width(100); columns.bound(p => p.cur).width(100); columns.bound(p => p.goods).width(100); columns.bound(p => p.cost).width(70); columns.bound(p => p.isdeleted).width(60); }) .sortable() .scrollable() .htmlattributes(new { @style = "font:12px calibri; " }) .filterable() )
how bring inside js file. please help,
well, dude, rendering html.
if want generate real csv file, use 1 of classes system.io namespace, , write directly response's outputstream.
see article reference on how it: writing output stream action
Comments
Post a Comment