<ej-grid id="FlatGrid" allow-paging="true" data-bound="bound" datasource="ViewBag.DataSource">
<e-columns>
<e-column field="OrderID" template="#detailTemplate" is-primary-key="true"></e-column>
<e-column field="EmployeeID"></e-column>
<e-column field="CustomerID"></e-column>
<e-column field="Freight"></e-column>
</e-columns>
</ej-grid>
<script>
function bound(args) {
this.getHeaderTable().remove();
}
</script> |
Hi Farveen :
I tried your suggestion but it did not work.
To remove the header row I added the following css, but is not an elegant solution, so I prefer to make it to work with your approach:
.e-headercell, .e-headercelldiv, .e-gridheader
{
height:0 !important;
border:0 !important;
}
My Grid definition is:
<ej-grid id="grid1"
action-begin="begin"
allow-resize-to-fit="true"
allow-paging="true"
is-responsive="true"
enable-row-hover="false"
allow-selection="false"
action-complete="onComplete"
data-bound="onDatabound"
>
<e-datamanager url="/DataSource" adaptor="UrlAdaptor" />
<e-columns>
<e-column template="#detailTemplate"></e-column>
</e-columns>
<e-page-settings page-size="10"></e-page-settings>
</ej-grid>
What could be my issue.
Regards,
David
Thanks Farveen.
Now is working as expected.