Is it possible to toggle expand rows?
See original GitHub issueI was wondering if it’s possible to expand/unexpand the rows in the datable.
I’m submitting a … (check one with “x”)
[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
jquery - Expand table rows - toggle - Stack Overflow
I have a table that is using expand rows feature. I am trying to add an Expand All to expand all, using 'toggleClass'....
Read more >How to Use the Excel Collapse Rows Feature? — 4 Easy Steps
Now, toggle between the + and – signs to collapse and expand the rows.
Read more >Expanding | TanStack Table Docs
Returns a function that can be used to toggle the expanded state of the row. This function can be used to bind to...
Read more >Bootstrap Table collapse/expand rows - free examples & tutorial.
Responsive Table collapse/expand rows built with Bootstrap 5. Use an accordion to collapse a table row vertically to show or hide content.
Read more >Expand and Collapse Rows - DevExtreme - DevExpress
All rows are collapsed by default. Assign an array of keys to the expandedRowKeys property to expand specific rows initially. If a to-be-expanded...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is it possible to declare a set of rows to expanded by default?
@ticklemycode you could achieve this by doing something similar to below. It filters rows by rowIndex (or any other property) then iterates through the filtered rows and changes the
expanded
property.Don’t forget to define
expanded
androwIndex
in your html template:This is just off the top of my head, so it may require some tweaking, but the idea is that you would iterate through the array of rows and set the
expanded
properties to true;