Problem with multiple instances of AutoFill plugin on the same page
Problem with multiple instances of AutoFill plugin on the same page
I am using DataTables Plugin to render a parent/child table relationship. When you expand the parent row an inner DataTables enhanced table gets rendered. The parent table has 14 columns while the child table has 43. I'm using the AutoFill extra plugin to add Excel like drop fill to both tables.
The problem occurs when I hover over the child table on any column index of over 14 (the max columns on the parent table). In the AutoFill plugin the _fnFillerDisplay function gets called on a hover of any td in the tbody. The issue is when that function gets called, "this" is representing the parent Autofill object, not the child. So when an column index of great than 14 is being checked in the this.s.columns[iX].enable call it throws an error because to the parent there is not column greater than 14.
My question is can the AutoFill plugin handle multiple different instances of itself. Thanks.
The problem occurs when I hover over the child table on any column index of over 14 (the max columns on the parent table). In the AutoFill plugin the _fnFillerDisplay function gets called on a hover of any td in the tbody. The issue is when that function gets called, "this" is representing the parent Autofill object, not the child. So when an column index of great than 14 is being checked in the this.s.columns[iX].enable call it throws an error because to the parent there is not column greater than 14.
My question is can the AutoFill plugin handle multiple different instances of itself. Thanks.
This discussion has been closed.
Replies
Regards,
Allan
Yes the child table is inside the parent table. Can you suggest a way to address that issue? That feature is an important feature for our functionality. Any clues would be greatly appreciated.
Guario
Allan