combine datefilter and callback footer in datatable
combine datefilter and callback footer in datatable
Aj_123
Posts: 5Questions: 1Answers: 0
how to combine DateTime filter and callback footer in data table
I want to sum column name col2 you can see in the image
test case are in link
https://plnkr.co/edit/Ztd5tNqM3ne7CAf7UDO9?p=preview&preview
Answers
You would use
footerCallback
for that - something like this example,Colin
Thanks, colin for replying, over the last 2 days I was struck by this problem and I am a beginner. it really helps me if you edit my use case give me full code because whenever I add-footer callback in my script it gives me Cannot reinitialise DataTable error
my test case link .
https://plnkr.co/edit/Ztd5tNqM3ne7CAf7UDO9?p=preview&preview
Your sources were very old, so I updated them, giving this: https://plnkr.co/edit/p4bONNgzu9IOKsCt
The sources need tidying up, but that should get you going,
Colin
thank you very much colin but in your updated code why date range filter does not work I need both callback footer and date filter work properly so please give me the code where callback footer and date filter both work properly
I kindly request you please
One thing to do is to change
fnDraw()
to bedraw()
- also as I said those sources need tidying up so you're on a recent build - it was using DataTables version 1.9.4, and those sources are still there.Colin
I changed fnDraw() to draw() but still, date filter is not work ??
hey colin I replace cdn link 1.9.4 to 1.11.5 and also changed in fnDraw to draw but my problem is not solved plase help me solve this issue
Can you link to the version with those changes, please.
Colin