Author Topic: When colModel dataType is boolean, exportrender:true not run  (Read 2349 times)

Kayser

  • Newbie
  • *
  • Posts: 7
    • View Profile
When colModel dataType is boolean, exportrender:true not run
« on: December 23, 2016, 12:45:21 pm »
Hi everyone,

I use below column code in my colModel, but when I exported grid with exportData method and this render option is true , although column option "exportrender:true" I show in exported excel file on "Avaliability" column 'true or false' not 'Available or Not Available'. Can you help me on my problem? Thanks in advance.


Code: [Select]
{
                    title: "Availability",
                    dataType: "bool",
                    dataIndx: "Availability",
                    editable: false,
                    resizable: true,
                    width: 75,
                    maxWidth: 150,
                    align: "center",
                    filter: { type: 'checkbox', condition: 'equal', subtype: 'triple', listeners: ['click'] },
                    render: function (ui) {
                        return { text: ui.cellData === true ? "Available" : "Not Available" };
                    },
                    exportRender : true
}