Using "headerCallback" function to display dynamic data
Using "headerCallback" function to display dynamic data
Khalid Teli
Posts: 251Questions: 71Answers: 0
Hi,
As shown in the test case, I used the "headerCallback" function to display the data in headers.
live.datatables.net/vupigede/1/edit
However, I am struggling to put this logic in,
I want to display the single record in the header. for example if I search position by global dropdown filter position = Technical Author and type in start date using search box start date = 2009/01/12 the age= 36 should be displayed in the header as a single record
and if if position = Technical Author and start date = 2012/08/06 the age = 59 should be displayed in the header as a single record
Thank you
Answers
live.datatables.net/vupigede/1/edit
Just an update for the question I asked, I kind of find a way of doing it but not sure if this is the right way.
What I did is , put the
age column in global filter and based on the selection it displays thestart date from first row.live.datatables.net/reqevigo/1/edit
I'm not too clear of the goal, but if it works...
Colin