Kendo UI Window - DataTable export buttons don't work
Kendo UI Window - DataTable export buttons don't work
Hi, i am trying to learn and implement DataTable to my project. Actually i really need DataTable export functionality.
I have a button on my page. Its open Kendo UI Window and everything is quite okay. But when i click the "export excel, export pdf,..." buttons on new window page, export buttons dont work for me.
I think i have a script crash. i have been trying for hours but i couldnt make it. All of your helps will be really appreciated.
Here is my kendo window code:
@(Html.Kendo().Window()
.Name("myWindow") //The name of the window is mandatory. It specifies the "id" attribute of the widget.
.Title("Login") //set the title of the window
.Content(@<text>
// DataTable export script
$(document).ready(function () { $('#example').dataTable({ "dom": 'T<"clear">lfrtip', "tableTools": { "sSwfPath": "/Scripts/datatables/copy_csv_xls_pdf.swf" } }); });</text>)
.Draggable() //Enable dragging of the window
.Resizable() //Enable resizing of the window
.Modal(true)
.Visible(false)
)
// Kendo's script
function openWindow() { var wdw = $("#myWindow").data("kendoWindow"); wdw.center(); wdw.open(); }// My button which triggers "openWindow();
<input onclick="openWindow()" value=" Özet Tabloyu Göster " />
Answers
I couldnt change my post which is above.
Here is good looking one:
http://stackoverflow.com/questions/24906058/datatable-and-kendo-window-ui