When a tab change event occurs first, it works normally.
If you move to another tab and then return to the original tab, a null error occurs.
domvm.micro.js:1224 Uncaught TypeError: Cannot set property ‘_node’ of null
//scipt
tabbar = new dhx.Tabbar("tabbar", {
mode: "top",
css: "dhx_widget--bordered",
views: [
{ tab: "tab1",id:"ta1"},
{ tab: "tab2",id:"ta2"},
]
});
grid = new dhx.Grid("tbl1", {
columns: [
{ /* width: 100 ,*/ align :"center",id: "SN", header: [{ text: "sn", colspan :1, rowspan: 3}] },
{ /* width: 80 ,*/ align :"center",id: "NM", header: [{ text: "t1" , rowspan: 3,colspan:1, align :"center"}] },
],keyNavigation: true,resizable: true, selection: "row"
});
grid2 = new dhx.Grid("tbl2", {
columns: [
{ /* width: 100 ,*/ align :"center",id: "SN", header: [{ text: "sm", colspan :1, rowspan: 3}] },
{ /* width: 80 ,*/ align :"center",id: "NM", header: [{ text: "t2" , rowspan: 3,colspan:1, align :"center"}] },
],keyNavigation: true,resizable: true, selection: "row"
});
tabbar.getCell("ta1").attach(grid);
tabbar.getCell("ta2").attach(grid2);
//HTML
<!-- component container -->
<div id="tabbar" style="height: 800px; width: 800px; margin: 0 auto; padding-top: 20px;"></div>