Subview only on Specific Rows

Hello gurus,

I wonder if we can have only Subview on Specific rows in a table. for instance, I have a column named "count" and based on that count I want to decide if we want to have a subview to the row.

Any help regarding this will be highly appreciated.

Thanks and Regards

Table subviews is controlled by rows.subview.enabled which suggests that it's a property common to the table and not selectable by row.

As a workaround you could have the subview switch modes depending on a value on the row.

Nothing to see here

Create the subview as a flex with the normal display row and the "Nothing to see here!" display row enabled and disabled by some property on the row.

Out of my 100 records, only 10 records have sub-records to show in the subview. if it's not possible to have a Subview on a Specific row then it is wise to display the count in colour, so that people can see it and expand it. not an elegant solution but works.

Thanks for your reply @Transistor , Appreciated.

Then consider a subview button on the rows and use a popup. It might be more obvious to the user. It doesn't facilitate multiple simultaneous subviews though.

You can make the row like this to disable the subview.

{
  "subview": {
    "enabled": false
  },
  "value": {
    "city": {
      "value": "Citrus Heights"
    },
    "country": {
      "value": "United States"
    },
    "population": {
      "value": 1
    }
  }
}

Can also set a different subview per row.

5 Likes