title: Kendo excel export - how do I export columns with a custom template?
body: <p>I have a kendo grid that I define declaritively.
  I enable the excel export toolbar via <code>data-toolbar='["excel"]'</code></p>
  
  <p>The problem is that this only exports the fields that do not have a template defined. (the first 3 in the grid below: Checkpoint, Location, Patrolled By), the other columns show up in the excel document, but the cells of those columns are all empty.</p>
  
  <p>How can I get the values to show up in the excel export? I'm guessing it will require pre-processing of some sort before the excel gets exported, as the excel export function doesn't interpret my custom field html templates.</p>
  
  <pre><code>&lt;div id="Checkpoints"&gt;
      &lt;div 
          ...
          data-toolbar='["excel"]'
          data-excel='{ "fileName": "CheckpointExceptionExport.xlsx", "allPages": "true" }'
          ...
          data-columns='[
              {
                  "field": "checkpoint_name", 
                  "title": "Checkpoint", 
                  "filterable": { "cell": { "operator": "contains"}}},
              {
                  "field": "location_name", 
                  "title": "Location", 
                  "filterable": { "cell": { "operator": "contains"}}
              },
              {
                  "field": "patrolled_by", 
                  "title": "Patrolled By", 
                  "filterable": { "cell": { "operator": "contains"}}
              },
              {
                  "field": "geotag",
                  "title": "GeoTag", 
                  "template": kendo.template($("#geotagTemplate").html()) 
              },
              {
                  "field": "geofence",
                  "title": "GeoFence",   
                  "template": kendo.template($("#geofenceTemplate").html())
              },
              {
                  "field": "completed",
                  "title": "Completed",
                  "template": kendo.template($("#completedTemplate").html())
              },
              {
                  "field": "gps",
                  "title": "GPS", 
                  "template": kendo.template($("#gpsTemplate").html())
              }
          ]'&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I've came across this snippet for handling the excel export event however I don't see a way to use this event handler in the way that I've defined the grid.</p>
  
  <pre><code> &lt;script&gt;
        $("#grid").kendoGrid({
          excelExport: function(e) {
            ...
          },
  
        });
      &lt;/script&gt;
  </code></pre>