How do i get the classname of autofill cells.
How do i get the classname of autofill cells.
 KelvinDing            
            
                Posts: 11Questions: 4Answers: 0
KelvinDing            
            
                Posts: 11Questions: 4Answers: 0            
            
            
                            
                                  in AutoFill             
        How do I get the classnames of those cells that was selected during autofill?
   $('#TestTable').DataTable().on( 'autoFill', function ( e, datatable, cells ) {
                                var x = table.cells('.PublicHoliday');
                                alert(cells[0].className);
                                alert( (cells.length * cells[0].length)+' cells were updated' );
                            } );
This question has an accepted answers - jump to answer
This discussion has been closed.
            
Answers
Hi @KelvinDing ,
You can look over the
cellsarray, and useCheers,
Colin
Hi @colin ,
Thank you for your quick response.
Gave your answers a try but I have encountered this problem.

I have tried it this way as well but was given undefined.

Do you happen to know what went wrong?
Cheers,
Kelvin
Ooops - sorry. That's my fault. I gave Colin some dodgy advice .
.
The
cellproperty is an API instance containing the cell index, so:should do it!
Allan
@allan
Thanks for your prompt reply.
I was able to achieve what i wanted by doing what you have suggested however with a slight change.