error js
error js
semenjava
Posts: 7Questions: 1Answers: 0
Uncaught TypeError: Cannot set property '1' of undefined jquery.dataTables.js 3748
what could be the problem ?
This discussion has been closed.
Answers
Happy to take a look at a test case, if you link to one, as required in the forum rules.
Allan
https://dev.mlk.net.ua//datatables/examples/server_side/simple.html
странно установка datatable идет на https://dev.mlk.net.ua//datatables/examples/server_side/simple.html , но не идет в админке, может это быть связано шаблоном погрузки?
sorry
strange setting datatable is https://dev.mlk.net.ua//datatables/examples/server_side/simple.html but don't go in the admin panel, it can be connected with the template loading?
The cause is found.
it is impossible to prescribe the attributes
<thead>
<tr>
<th class="thin checkbox-cell checkbox-cell-all"><input type="checkbox" id="all-checkbox"></th>
<th rowspan="2">Barcode</th>
<th class="title" rowspan="2">Название</th>
<th rowspan="2">Производитель</th>
<th rowspan="2">Цена</th>
<th rowspan="2">Всего кол.</th>
<!--<th colspan="4">Вся информаци поставок</th>-->
</tr>
<!--<tr>
<th scope="col" data-attribute="dateOrdered">Дата поставок</th>
<th scope="col" data-attribute="dateOrdered">Срок годности</th>
<th scope="col" data-attribute="number">Кол. при поставки</th>
<th scope="col" data-attribute="number">Закупочная цена</th>
</tr>-->
</thead>
<tfoot>
<tr>
<th></th>
<th rowspan="2">Barcode</th>
<th rowspan="2">Название</th>
<th rowspan="2">Производитель</th>
<th rowspan="2">Цена</th>
<th rowspan="2">Всего кол.</th>
<!--<th colspan="4">Вся информаци поставок</th>-->
</tr>
<!--<tr>
<th scope="col" >Дата поставок</th>
<th scope="col" >Срок годности</th>
<th scope="col" >Кол. при поставки</th>
<th scope="col" >Закупочная цена</th>
</tr>-->
</tfoot>
well, how do I create, for example: colspan="4" ?
You can use
colspan
in thethead
(you can't in thetbody
!), but you must still have one unique cell per column. See this example.Allan
thank you