JQuery Datatable with export Combobox(Xml,CSV,Xls) as options and a button on the header
JQuery Datatable with export Combobox(Xml,CSV,Xls) as options and a button on the header
AjayCh
Posts: 1Questions: 0Answers: 0
Hi,
I am new to Jquery Datatable.
I am using Datable grid to show results.Is there any option to show the combobox above the column headers.
the combobox should have options like excel,csv,xml and a button with text "Export".
Once I select value in combobox and click on export button,i should able to export the data to that format.
Please let me know how can i acheive this.
I have tried the below code,instead of buttons i am looking for combobox
var search = function () {
if (oTable === null) {
debugger;
oTable = $('#tSearchResult').dataTable({
"oTableTools": {
"aButtons": [
"copy",
"print",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv", "xls", "pdf" ]
}
]
},
"bServerSide": true,
I am new to Jquery Datatable.
I am using Datable grid to show results.Is there any option to show the combobox above the column headers.
the combobox should have options like excel,csv,xml and a button with text "Export".
Once I select value in combobox and click on export button,i should able to export the data to that format.
Please let me know how can i acheive this.
I have tried the below code,instead of buttons i am looking for combobox
var search = function () {
if (oTable === null) {
debugger;
oTable = $('#tSearchResult').dataTable({
"oTableTools": {
"aButtons": [
"copy",
"print",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv", "xls", "pdf" ]
}
]
},
"bServerSide": true,
This discussion has been closed.