You want to use a sap.ui.table control, like TreeTable, but the example in the UI5 Explored app is rendered different than in your application.
Same code in your App or Snippet:
SAPUI5, TreeTable, sap.ui.table, content density, cozy, compact, condensed, controls.
SAPUI5, controls, sap.ui.table, content density, cozy, condensed, compacted, check box, selection, Explored , KBA , CA-UI5-TBL , SAP UI5 table, smart table, list and tree controls , CA-UI5-CTR , SAP UI5 Controls , How To
About this pageThis is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).
Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.