188
Views
10
Comments
How to Create Expandable and Collapsible Rows in a Custom Table in OutSystems
Question
Application Type
Reactive

Hi everyone,

I'm trying to create a custom table in OutSystems that allows rows to expand and collapse, similar to the example shown in the image below. I want users to be able to click on specific rows to expand them and reveal additional information, and then collapse them when they click again.

Features I’d like to implement:

  1. The main table rows should display summary data.
  2. Each row should be clickable to expand and show nested rows with more detailed data.
  3. Ability to collapse expanded rows when needed, similar to how it works in hierarchical or drill-down tables.

Image examp:

Questions:

  • Are there built-in components or patterns in OutSystems that support this kind of table structure?
  • If not, what would be the best approach to implement this? Would it require custom CSS/JavaScript?
  • Any guidance or example code on how to handle the click events for expanding and collapsing rows?
2024-10-19 11-15-19
Sazid

Hi Nguyen Duc Binh 

There are no built-in components that fully support your use case; however, this functionality can be easily achieved using a List widget and a few Web Blocks. Please find the attached OML file, which demonstrates the approach. Note that you will need to update the CSS and other styling to achieve your desired look and feel, as this OML is meant to demonstrate the basic functionality. Additionally, please note that column alignment adjustments will be needed. 

Exapandable_Row.oml
2021-03-08 09-24-09
Rúben Meireles

Hi Nguyen,

You can also try the component Expandable Table Row:
https://www.outsystems.com/forge/component-overview/10423/expandable-table-row-o11

Cheers,

Rúben


2025-12-04 09-01-03
Kiet Phan
Champion

Hi @Nguyen Duc Binh,

TreeGrid can be achieved by using built-in DataGrid component of Outsystems. But it's not officially supported by Outsystems.

Since DataGrid is based on Wijimo Grid which supports built-in tree structure, we can use Javascript to activate the tree. The keyword is childItemsPath, you can search in this forum with that keyword.

I have done recently project with tree based on DataGrid needed from client.


2025-01-14 08-11-14
rongli qi

Kiet Phan

Hello, is there an oml file for reference? I have also encountered the same problem

2025-12-04 09-01-03
Kiet Phan
Champion
2025-12-04 09-01-03
Kiet Phan
Champion
DataGrid_GridTreeSample.oml
2025-12-04 09-01-03
Kiet Phan
Champion
2025-01-14 08-11-14
rongli qi
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.