Expand and Collapse Rows
Expand and Collapse Rows
Hi Allan,
I am designing the next tool for our website and would like to continue using DataTables to display our RNA sequence data. To make the tool more user friendly I would like to organize the data by making each row a "Sample" and then if the user chooses to expand a Sample every Sequence belonging to that Sample would appear below as new rows.
Right now I am going to make it so that every sequence will appear in the table and have a column for Sample Name and a column for Sequence Name. It would be nice if I could collapse a Sample, so that just the Sample Name was present and the Sequence Name column was blank.
I don't know if I explained that clearly or not?
Thanks for all you help so far!
I am designing the next tool for our website and would like to continue using DataTables to display our RNA sequence data. To make the tool more user friendly I would like to organize the data by making each row a "Sample" and then if the user chooses to expand a Sample every Sequence belonging to that Sample would appear below as new rows.
Right now I am going to make it so that every sequence will appear in the table and have a column for Sample Name and a column for Sequence Name. It would be nice if I could collapse a Sample, so that just the Sample Name was present and the Sequence Name column was blank.
I don't know if I explained that clearly or not?
Thanks for all you help so far!
This discussion has been closed.
Replies
Is this the kind of thing you are looking for: http://datatables.net/examples/api/row_details.html ?
Thanks,
Allan
The table is for displaying samples/sequences within a researchers "sandbox" for analysis. So if they only want to run a classification tool on specific sequences within their sandbox, they need to be able to select only them.
Allan
In other words, I want my datatable to start off with all groupings collapsed with a "+" sign next the grouping name and I when I click on the plus sign the grouped rows expand/appear.
Is this possible?
If so, I'm not sure where to do the event handling. Do I create a new event handler or do I work it into where the grouping is created? I've tried adding an event handler to toggle the siblings, but it's not working and not sure where else to head next. Apologies for my beginner jquery skills.
Is it possible, Allan?
http://www.jeasyui.com/demo/index.php