Hi,
I'm in final stage of writing a column filter plugin for datatables and I was wondering how should I register it to be executed upon each table redraw, should I use .aoDrawCallback.push or bind to draw event with jquery ?
Another thing that I noticed that non of the approaches I just mentioned not firing when data source of the table is DOM, but it does works just fine when using the Ajax source as data source (I guess that it will work just fine for Server side processing, but not sure what gonna happen with Javascript array as data source), why ?
My last question would be what is the best practice to recognize what is the data source of the table ? DOM/Javascript array/Ajax source/Server side processing
If I better split the question into several smaller ones please let me know,
Thanks ahead,
Daniel.
I'm in final stage of writing a column filter plugin for datatables and I was wondering how should I register it to be executed upon each table redraw, should I use .aoDrawCallback.push or bind to draw event with jquery ?
Another thing that I noticed that non of the approaches I just mentioned not firing when data source of the table is DOM, but it does works just fine when using the Ajax source as data source (I guess that it will work just fine for Server side processing, but not sure what gonna happen with Javascript array as data source), why ?
My last question would be what is the best practice to recognize what is the data source of the table ? DOM/Javascript array/Ajax source/Server side processing
If I better split the question into several smaller ones please let me know,
Thanks ahead,
Daniel.