ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: kshipra on March 27, 2017, 11:49:03 pm

Title: exportdata how can I set different fileName rather than default "pqgrid"
Post by: kshipra on March 27, 2017, 11:49:03 pm
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
                             });
                         }
                     },
Title: Re: exportdata how can I set different fileName rather than default "pqgrid"
Post by: paramvir on March 28, 2017, 11:09:46 am
filename can't be changed in Evaluation version.