How do I get to show up?
How do I get to show up?
dtUser2011
Posts: 11Questions: 0Answers: 0
Hi,
I'm new to jQuery DataTables api, and I added a row to my table using the API. However, the section does not show up. What do I need to do to get the body to show up per row that I add to the table?
I have a link to the sample code: http://live.datatables.net/uhunib/3/edit
Thanks for your help!
I'm new to jQuery DataTables api, and I added a row to my table using the API. However, the section does not show up. What do I need to do to get the body to show up per row that I add to the table?
I have a link to the sample code: http://live.datatables.net/uhunib/3/edit
Thanks for your help!
This discussion has been closed.
Replies
http://live.datatables.net/uhunib/4/edit
Allan
Allan
Connection State
I see in your example (http://live.datatables.net/uhunib/3/edit#javascript,html)
you have
[code]
Connection State
[/code]
Are you wanting this 'connection state' to be another column, or a row 'header'? Typically speaking in a database table, one has all of their data for one 'item' in one row, and the columns are the informational aspects of that row (server node name, server port name, etc). What kind of information do you want to convey by 'connection state' ?
Sorry, I guess I wasn't clear on what I was expecting. I want the output to look something like the following:
Server Port WWN | Server Node WWN | Server Port Name | Server Node Name
-------------------------------------------------------------
a | b | c | d
connection-state Active
-------------------------------------------------------------
e | f | g | h
connection-state Disabled
-------------------------------------------------------------
So, I have two rows in the table, and each row has a connection-state field (and possibly other fields if I decide to add some more later). How do I do this?
You will probably have to add an additional (hidden) field that tells the status of the record (enabled / disabled).
edit:
look here. It will do what you are needing.
http://www.datatables.net/examples/advanced_init/row_grouping.html