मैं वर्तमान में हैंडोंटेबल और पायथन + डीजेंगो के साथ काम कर रहा हूं, मैंने जावास्क्रिप्ट के साथ एक कस्टम मर्ज किए गए शीर्षलेख को रखा है। और यह इस तरह दिखना चाहिए।हैंडसोन्टेबल: jquery मर्ज हेडर, क्षैतिज स्क्रॉल पर बग
लेकिन जब मैं पृष्ठ लोड करता हूं।
लेकिन, जब मैं वापस स्क्रॉल और अग्रेषित त्रुटि जादुई गायब हो जाते हैं।
इस कंटेनर div है।
<div class="table-container" style="width: auto; height: 200px; overflow: hidden;margin-top: 20px;">
<div id="table-index" data-productoscomerciales='{{productoscomerciales}}'></div>
</div>
यह मेरा जावास्क्रिप्ट कोड है।
function createTable(data, container) {
var str = '<tr id="header-grouping">'+'<th colspan="1"></th>'+'<th colspan="1"></th>'+'<th colspan="1"></th>'+'<th colspan="15">Inventario*</th>' +
'<th colspan="9">Producción*</th>'+'</tr>';
return new Handsontable(container, {
data: data.slice(2,data.length),
minSpareRows: 1,
rowHeaders: false,
manualColumnResize: true,
colHeaders: data[0],
columns: data[1],
colWidths: [150, 100, 130],
contextMenu: false,
afterRender : function() {$('.htCore > thead > tr').before(str);},
beforeRender: function() {
while ($('#header-grouping').size() > 0)
$('#header-grouping').remove();
},
afterColumnResize: function() {
$container.handsontable('render');
},
afterGetColHeader: function() {
while ($('.ht_clone_top.handsontable #header-grouping th').size() > 0)
$('.ht_clone_top.handsontable #header-grouping th').remove();
}
});
}
क्या आप किसी विशेष सीएसएस फाइल का उपयोग कर रहे हैं? – ZekeDroid
हाय जेकड्राइड, वास्तव में मैं तालिका के लिए डिफ़ॉल्ट हैंडोंटेबल सीएसएस का उपयोग कर रहा हूं। http://handsontable.com/bower_components/handsontable/dist/handsontable.full.min.css – FranciscoV