title: TypeError C is undefined datatables
body: <p>I'm trying to render some data that i get with ajax into a datatable, but it seems I'm missing something, because it displays the error: TypeError: c is undefined. </p>
  
  <p>I've read this post, <a href="https://stackoverflow.com/questions/29893207/datatables-typeerror-c-is-undefined">Datatables TypeError: c is undefined</a>, but any solution given hasn't solved my problem. Anyone have an idea that could help me? Thank you.</p>
  
  <p>html code:</p>
  
  <pre><code>&lt;table id="itinerariDetailTable" class="table table-sm table-striped table-bordered" style="font-size: x-small;"&gt;
                          &lt;thead class="thead-inverse"&gt;
                              &lt;tr&gt;
                                  &lt;th&gt;Id&lt;/th&gt;
                                  &lt;th&gt;Codi&lt;/th&gt;
                                  &lt;th&gt;Descripció&lt;/th&gt;
                                  &lt;th&gt;Temporada&lt;/th&gt;
                                  &lt;th&gt;Districte&lt;/th&gt;
                                  &lt;th&gt;Barri&lt;/th&gt;
                                  &lt;th&gt;C. Treball&lt;/th&gt;
                                  &lt;th&gt;G. Servei&lt;/th&gt;
                                  &lt;th&gt;T. Servei&lt;/th&gt;
                                  &lt;th&gt;Máquina&lt;/th&gt;
                                  &lt;th&gt;Corretorn&lt;/th&gt;
                                  &lt;th&gt;Torn&lt;/th&gt;
                                  &lt;th&gt;Tipus Día&lt;/th&gt;
                                  &lt;th&gt;Equips&lt;/th&gt;
                                  &lt;!-- &lt;th&gt;Jornades&lt;/th&gt;
                                  &lt;th&gt;Cost unitari&lt;/th&gt;
                                  &lt;th&gt;T. Itinerari&lt;/th&gt;
                                  &lt;th&gt;Escenario&lt;/th&gt; --&gt;                              
                              &lt;/tr&gt;
                          &lt;/thead&gt;
                          &lt;tfoot&gt;
                              &lt;tr&gt;
                                  &lt;th&gt;Id&lt;/th&gt;
                                  &lt;th&gt;Codi&lt;/th&gt;
                                  &lt;th&gt;Descripció&lt;/th&gt;
                                  &lt;th&gt;Temporada&lt;/th&gt;
                                  &lt;th&gt;Districte&lt;/th&gt;
                                  &lt;th&gt;Barri&lt;/th&gt;
                                  &lt;th&gt;C. Treball&lt;/th&gt;
                                  &lt;th&gt;G. Servei&lt;/th&gt;
                                  &lt;th&gt;T. Servei&lt;/th&gt;
                                  &lt;th&gt;Máquina&lt;/th&gt;
                                  &lt;th&gt;Corretorn&lt;/th&gt;
                                  &lt;th&gt;Torn&lt;/th&gt;
                                  &lt;th&gt;Tipus Día&lt;/th&gt;
                                  &lt;th&gt;Equips&lt;/th&gt;
                                  &lt;!-- &lt;th&gt;Jornades&lt;/th&gt;
                                  &lt;th&gt;Cost unitari&lt;/th&gt;
                                  &lt;th&gt;T. Itinerari&lt;/th&gt;
                                  &lt;th&gt;Escenario&lt;/th&gt; --&gt;                              
                              &lt;/tr&gt;
                          &lt;/tfoot&gt;
                      &lt;/table&gt;
  </code></pre>
  
  <p>js code:</p>
  
  <pre><code>$('#itinerariDetailTable').DataTable( {
          "processing": true,
          "serverSide": true,
          "ajax":{
              "url":'/escenaris/selectById',
              "type":'GET',
              "data": function(d){
                  d.idEscenari = $('#idEscenari').val();                  
              }
          },
          "order": [[ 0, "asc" ]],
          "columns": [
              { "data": "idItinerari" },
              { "data": "codiItinerari" },
              { "data": "descripcio" },
              { "data": "temporada.codiTemporada" },
              { "data": "districte" },
              { "data": "barri" },
              { "data": "centreTreball" },
              { "data": "grupServei" },
              { "data": "tractamentRecursos" },
              { "data": "maquinaCombustible" },
              { "data": "corretorn" },
              { "data": "torn" },
              { "data": "tipusDia" },
              { "data": "nombreEquips" }
              /*{ "data": "frequencia" },
              {"data": "resultatItinerari.costUnitari", "defaultContent": "0" },
              { "data": "tipusItinerari.codiTipusItinerari" }/*,                          
              { "data": "escenari.idEscenari" }           */  
          ]
      });
  </code></pre>