Displaying hierarchial data in dataTables
Displaying hierarchial data in dataTables
kshtjsnghl
Posts: 8Questions: 0Answers: 0
I have a requirement of showing Hierarchial Data in a table like the following -
[code]
DUMMY_CORE AB
DUMMY_GR_RES
DUMMY_GR_RES_SIG
DUMMY_GR_COM
DUMMY_GR_COM_SIG
DUMMY_2ND
DUMMY_2ND_SIG
DUMMY_2ND_COM
DUMMY_2ND_COM_SIG
DUMMY_DOM_3DAY_RES
[/code]
(Every line is a 'row' in the table but one such group is a row from the data source)
I also need to fetch this data through ajax calls which I know I can do using dataTables.
But can I tweak it to handle this kind of hierarchial data.
[code]
DUMMY_CORE AB
DUMMY_GR_RES
DUMMY_GR_RES_SIG
DUMMY_GR_COM
DUMMY_GR_COM_SIG
DUMMY_2ND
DUMMY_2ND_SIG
DUMMY_2ND_COM
DUMMY_2ND_COM_SIG
DUMMY_DOM_3DAY_RES
[/code]
(Every line is a 'row' in the table but one such group is a row from the data source)
I also need to fetch this data through ajax calls which I know I can do using dataTables.
But can I tweak it to handle this kind of hierarchial data.
This discussion has been closed.
Replies
to intercept the table, I use fnDrawCallback, make the original table hidden, and redraw the data. see http://datatables.net/forums/discussion/5992/rotate-table#Item_10
or see http://www.datatables.net/forums/discussion/5937/how-to-display-results-as-rows-instead-of-columns/p1