Referred to exportdata api and set fileName. But I am getting null in fileName ?
{
type: 'button',
label: "Export",
icon: 'ui-icon-arrowthickstop-1-s',
listener: function () {
var data = $('#ddlProcessor').select2('data');
console.log(data[0].text);
// alert(data.text);
this.exportData({
url: "../Events/exportData",
fileName: data[0].text,
format: $("#export_format").val(),
zip: $("#export_zip").prop("checked"),
render: true
});
}
},