Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #102686
    Joko Pitoyo
    Participant
    Up
    0
    Down

    Howto export Grid to Pdf or excel, include template cell,

    trip.format_speed=function(obj){

    const speed = obj.row.data[‘speed’];
    obj.template = speed + ‘Km/Jam’;

    }

    columns: [
    { label: ‘Date’, dataField: ‘tdate’, width: 200 },
    { label: ‘Speed’, dataField: ‘speed’, width: 100, template: trip.format_speed },
    { label: ‘Engine’, dataField: ‘acc’, width: 100, template: trip.format_acc },
    { label: ‘Charger’, dataField: ‘charge’, width: 100, template: trip.format_charge },
    { label: ‘Battery’, dataField: ‘batt’, width: 100, template: trip.format_battery },
    { label: ‘Address’, dataField: ‘address’, width: 250 }
    ]

    • This topic was modified 4 months, 3 weeks ago by Joko Pitoyo.
    • This topic was modified 4 months, 3 weeks ago by Joko Pitoyo.
    #102692
    admin
    Keymaster
    Up
    0
    Down

    Hi,

    We export the cell values i.e the data. We do not export templates as a template could be any html element or a combination of different types of content.

    Regards
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.