Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
How to hide the dropdown icon on master detail igx-grid when null details
posted

I have a master detail grid where not all master rows will have child details. Currently, the rows with missing details still show the drop down arrow for the detail template. I would like hide the arrow, or template, when the details are missing. I think the trick may be an *ngIf on the ng-template, but I can't seem to reference the details object to test if it is 'nothing' or an empty colleciton.

<ng-template igxGridDetail let-weekdays *ngIf="weekdays.details.length > 0>
...
</ng-template>
Parents
No Data
Reply
  • 230
    Offline posted

    I think I just answered my question. Instead of using igx-grid, use  igx-hierarchical-grid. Then set the hasChildrenKey property to a property on your parent object that returns true|false if the object has children.

Children
No Data