Author Topic: Edit Export Data  (Read 2007 times)

joelclark

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 10
    • View Profile
Edit Export Data
« on: April 10, 2019, 10:20:38 pm »
Hi There,

I am just wondering what the best approach to edit the data of a column for export is. By this I mean in my column model I have the following column:

 {
                title: GS.res.rail.LeaseCarEntry_Car_Label, dataType: "string", dataIndx: "Car", editable: false, align: "left", minWidth: 150,
                render: function (ui) {
                    if (ui.rowData.Car) {
                        var carIdentifier = ui.rowData.Car;
                        return '<a href="../RailTrace/Search?RailCarName=' + carIdentifier.replace(/\s/g, '') + '"&EventFromDate="' + null + '"&EventToDate="' + null + '" class="underline">' + ui.rowData.Car + '</a > ';
                    }
                },
                filter: { crules: [{ condition: 'contain' }], listeners: ['keyup'] }
            },

and then when I export this to excel the car row is displaying the whole return but I just want it to display the original ui.rowData.Car.

Thanks,
Joel

joelclark

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Edit Export Data
« Reply #1 on: April 10, 2019, 10:52:30 pm »
You can delete/ignore this post found it upon further searching. Just had to use the "exportRender: false" in my column model!