I am applying fixed column to the datatable by
fixedColumns: {
left: 0,
right: 1
},
datatable.on("draw", function () {
KTMenu.createInstances();
});
Hi Megha,
Instead of initializing the menu immediately after the "draw" event, try adding a slight delay before initializing the menu. This delay might ensure that the fixed column has fully rendered before the menu is initialized.
datatable.on("draw", function () {
setTimeout(function () {
KTMenu.createInstances();
}, 100); // Adjust the delay as needed
});
Hi,
This can happen because the fixed column has a higher z-index than the popup menu, causing it to appear on top.
Increase the z-index of the popup menu:
This is the most straightforward solution. You can increase the z-index of the popup menu CSS style to ensure it appears above the fixed column.
.dropdown-menu {
z-index: 1000; /* Increase z-index to a higher value than the fixed column */
}
No, it is not working. Data is loaded by Ajax. and the menu was reinitialized after data loading. I am not sure if Ajax data loading is causing the issue or not.