Autofill not saving
Autofill not saving
Hi,
I setup autofill and when I go to drag it, it would highlight the rows but not save any data in it. Now, I don't know what changed but it doesn't even show the little blue box to drag. I'm using autofill with keys together + inlining. Wondering what I'm doing wrong...
autoFill: {
columns: ':not(:first-child)',
editor: editor
},
keys: {
columns: ':not(:first-child)',
editor: editor
},
select: {
style: 'os',
selector: 'td:first-child',
blurable: true
},
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @test42 ,
It's working in this example here, so I'm guessing you changed something that broke it on your end.
I'd say the place to start would be the libraries, ensure they're still present and loaded. It would be worth running the debugger on the page - as this would show what libraries are being loaded. If no joy, press upload and we can take a look,
Cheers,
Colin
Hi Colin,
I've discovered what's happening is the little "dt-autofill-handle" button is showing up at the VERY end of the table outside of it. What's weird is I've cleared all CSS and it's still getting stuck out there. Digging into it now but do you have any ideas?
Thanks!
It's actually this same issue
However, I've got the latest jquery and datatables version loaded, attaching my setup below:
Could you use the nightly version of AutoFill please? If that doesn't work for you, can you link to your page showing the issue so we can debug it.
Thanks,
Allan
Hi Allan,
I've added the nightly build to no avail. Will send you a direct message as I can't post the data publicly.
Thanks!
For future views of this post, we determined the "dom: Blfrtip" attribute was causing layout issues, simply removing that allowed autofill to work again.
Just for clarification - the
dom
option is only an issue if you are not using the DataTables styling (i.e. you are using Bootstrap or similar). For the integration styles thedom
option needs to be a bit more complex, as shown in thedom
documentation.In v2
dom
is going to be replaced with a much easier option!Allan