This is a migrated thread and some comments may be shown as answers.

Hide the Expand/Collapse column of a Detail Grid

2 Answers 1521 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
desi
Top achievements
Rank 1
desi asked on 18 Oct 2018, 02:57 AM
Since I've implemented master detail functionality from code behind, is it possible to hide the expand/collapse column added to Detail Grids?

2 Answers, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 19 Oct 2018, 06:05 AM
Hello Desi,

You can hide the expand/collapse Grid column via overwriting the built-in Grid CSS, e.g.:

encapsulation: ViewEncapsulation.None,
    styles: [`
     .k-grid .k-hierarchy-cell {
      width: 0;
    }
 
    .k-grid .k-header.k-hierarchy-cell {
      border: none;
    }
 
    .k-grid .k-hierarchy-cell .k-icon {
      display: none;
    }
 
    .k-grid .k-hierarchy-col {
      width: 1px;
    }
    `]

https://stackblitz.com/edit/angular-ppkpnh?file=app%2Fapp.component.ts

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
desi
Top achievements
Rank 1
answered on 25 Oct 2018, 03:25 AM
Thank you ,
Tags
General Discussions
Asked by
desi
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
desi
Top achievements
Rank 1
Share this question
or