YADCF with searchBuilder - ColReorder error when dynamic data
YADCF with searchBuilder - ColReorder error when dynamic data
Hi.
I have table with dynamic data. When using YADCF, searchBuilder and colReorder I got error: can't access property "mData", N.aoColumns[l] is undefined, when reordering the columns. The error seams to come from YADCF.
It works when:
- I turn off YADCF
- or removing searchBuilder
- or have static data direct in my HTML
In this test case I get error, but still it seem like the colReorder is working, however, in my main project, the order get messed up. Am I missing somthing in the dynamic data setup?
Answers
For the record I'm using this versions:
- dataTables 1.13
- YADCF 0.9.6
- SearchBuilder 1.6.0
- ColReorder 1.7.0
The problem is you have 5 Datatable
columns
defined:But you have defined 6 columns in YADCF:
The first column starts at index 0.
column_number: 0
is theName
column. The addition YADCF column is causing the error:Kevin
I see there was a misstake inn my test case, sorry about that. I thought I had managed to reproduce the problem. In my main project I had this error everytime I moved my columns 2 or more places (move one place -> no error). But apperently my test was working. I figured out that in my .cshtml file I had this functions running:
Removing this and no error.
Thanks for your time!