lightning:treegrid select child rows upon selecting parent row in Salesforce
Sample Code:Example.cmp:<aura:component implements="force:appHostable" controller="AccountListController"> <aura:attribute name="gridColumns" type="List" /> <aura:attribute name="gridData" type="Object" /> <aura:attribute name="selectedRows" type="list" /> <aura:handler name="init" value="{!this}" action="{!c.fetchAccounts}"/> <lightning:treeGrid columns="{! v.gridColumns }" data="{! v.gridData }" ....