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

Child Kendo grid headers

1 Answer 560 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 21 Oct 2020, 03:19 PM

We have a parent and child grid setup within our app.  Everything works fine except that the headers in the child grid are somehow inheriting CSS that underline the headers.

Here is the code in the parent:

    <kendo-grid-column field="ReportID">
      <ng-template kendoGridCellTemplate let-dataItem>
        <div class="k-icon k-i-plus-circle" style="color: limegreen; cursor:pointer;" title="Add" (click)="addToFavorite(dataItem.ReportAssociationID)"></div>
      </ng-template>
    </kendo-grid-column>
    <ng-template kendoGridDetailTemplate let-dataItem>
      <reportDocumentGrid>CHILD GRID IS IN HERE</reportDocumentGrid>
    </ng-template>

For some reason the headers in the child grid are getting the following style applied:

 

.k-grid tbody tr td:not(.k-hierarchy-cell) a {
text-decoration: underline;
}

Really stuck here, thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 23 Oct 2020, 07:49 AM

Hi Nathan,

Thank you for the provided details.

If there isn't any custom CSS that adds the demonstrated style then I would suggest to make sure that you are using the latest Kendo Default theme version 4.25.0.

Please check the following example from our documentation which uses the latest Kendo Default theme:

https://www.telerik.com/kendo-angular-ui/components/grid/master-detail/

where the reported style doesn't seem to be applied to the child grid.

If the issue persists when using the latest theme, then the demonstrates style is most probably added by some custom CSS added to the project.

I hope the provided information helps. Please let me know in case the issue persists. Thank you.

Regards,
Svetlin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Nathan
Top achievements
Rank 1
Answers by
Svet
Telerik team
Share this question
or