-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(grid): last nested Grid inherits row styles
- Loading branch information
Showing
2 changed files
with
112 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<!doctype html> | ||
<html lang="en" class="k-typography k-no-animations"> | ||
<head> | ||
<title>Grid Hierarchy</title> | ||
<meta charset="utf-8" /> | ||
<link rel="stylesheet" data-role="kendo-theme" href="../../packages/default/dist/all.css" /> | ||
<link rel="stylesheet" href="assets/styles.css" /> | ||
<script src="assets/scripts.js"></script> | ||
|
||
<style> | ||
#test-area { | ||
grid-template-columns: 1fr; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div id="test-area" class="grid"> | ||
|
||
<section> | ||
<div class="k-widget k-grid k-grid-no-scrollbar" style="width: 600px; height: 400px;"> | ||
<div class="k-grid-header"> | ||
<div class="k-grid-header-wrap"> | ||
<table> | ||
<colgroup> | ||
<col class="k-hierarchy-col" /><col /> | ||
</colgroup> | ||
<thead> | ||
<tr> | ||
<th class="k-header k-hierarchy-cell"> | ||
</th> | ||
<th class="k-header"> | ||
<a class="k-link">Title<span></span></a> | ||
</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
</div> | ||
</div> | ||
<div class="k-grid-content"> | ||
<table class="k-grid-table"> | ||
<colgroup> | ||
<col class="k-hierarchy-col" /><col /> | ||
</colgroup> | ||
<tbody> | ||
<tr class="k-master-row"> | ||
<td class="k-hierarchy-cell"> | ||
<a class="k-icon k-i-expand"></a> | ||
</td> | ||
<td>1</td> | ||
</tr> | ||
<tr class="k-alt k-master-row"> | ||
<td class="k-hierarchy-cell"> | ||
<a class="k-icon k-i-collapse"></a> | ||
</td> | ||
<td>2</td> | ||
</tr> | ||
<tr class="k-detail-row"> | ||
<td class="k-hierarchy-cell"></td> | ||
<td class="k-detail-cell" colspan="1"> | ||
<!-- hierarchy child content --> | ||
<div class="k-widget k-grid k-grid-no-scrollbar" style="height: 200px;"> | ||
<div class="k-grid-header"> | ||
<div class="k-grid-header-wrap"> | ||
<table> | ||
<colgroup> | ||
<col /><col /> | ||
</colgroup> | ||
<thead> | ||
<tr> | ||
<th class="k-header"> | ||
<a class="k-link">Title<span></span></a> | ||
</th> | ||
<th class="k-header"> | ||
<a class="k-link">Title<span></span></a> | ||
</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
</div> | ||
</div> | ||
<div class="k-grid-content"> | ||
<table class="k-grid-table"> | ||
<colgroup> | ||
<col /><col /> | ||
</colgroup> | ||
<tbody> | ||
<tr class="k-master-row"> | ||
<td>Text</td> | ||
<td>Text</td> | ||
</tr> | ||
<tr class="k-alt k-master-row"> | ||
<td>Text</td> | ||
<td>Text</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
</div> | ||
|
||
</body> | ||
</html> |