<div class="content-container-fluid">
<div class="row">
<div class="cols-sample-area">
<div id="Grid"></div>
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
dataSource: data,
allowSorting: true,
columns: [
-------
{ headerText: "", template: "#check",textAlign: ej.TextAlign.Center, width: 25 },
],
childGrid: {
columns: [
-----
],
},
});
});
</script>
<script id="check" type="text/x-jsrender">
<div class="e-detailrowcollapse icon-flipped">
<div class="e-icon e-gnextforward rightexpand"></div>
</div>
</script>
<style>
.icon-flipped {
transform: scaleX(-1);
-moz-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
-ms-transform: scaleX(-1);
border-top-width:0px !important;
}
.e-detailheadercell + .e-headercell{
border-left-width:0px !important;
}
.e-gnextforward:not(.rightexpand){
visibility:hidden
}
.rightexpand::before{
content: "\e676" !important;
}
</style> |
<style>
.e-detailrowcollapse:not(.icon-flipped), .e-detailheadercell, .e-detailindentcell { /*to hide the extra cell space*/
display: none;
}
table > colgroup:first-child { /*to hide the colgroup of header and content*/
display: none;
}
.icon-flipped {
transform: scaleX(-1);
-moz-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
-ms-transform: scaleX(-1);
border-top-width: 0px !important;
}
.e-detailheadercell + .e-headercell {
border-left-width: 0px !important;
}
.e-gnextforward:not(.rightexpand) {
visibility: hidden
}
.rightexpand::before {
content: "\e676" !important;
}
</style> |