We have a grid in asp.net core using essential2. It is defined in the following way:
<ejs-grid id="Invoiceitems"
toolbar="@(new List<string>() {"Add", "Edit", "Delete", "Cancel"})"
allowPaging="true"
allowsorting="true"
allowtextwrap="true"
allowReordering="true"
allowRowDragAndDrop="false"
height="300"
rowSelected="lineGridSelected"
dataSource="@Model.Items"
rowHeight="25"
enableHover="false"
enableVirtualization="true"
allowSelection="true"
actionBegin="actionBegin"
actionComplete="actionComplete">
<e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true"
showDeleteConfirmDialog="true"
newRowPosition="Bottom"></e-grid-editSettings>
<e-grid-pagesettings pageCount="5 "></e-grid-pagesettings>
<e-grid-pagesettings pagesize="25"></e-grid-pagesettings>
<e-grid-selectionSettings persistSelection="false" type="Single"></e-grid-selectionSettings>
<e-grid-columns>
<e-grid-column field="Code" isPrimaryKey="true" textAlign="Right"
visible="false"></e-grid-column>
<e-grid-column template="#codeconcept"
textAlign="Left"
allowResizing="false"
allowEditing="true"
width="90"
edit="@(new {create = "create", read = "read", destroy = "destroy", write = "write"})"
allowFiltering="false"></e-grid-column>
<e-grid-column field="ConceptCode" allowEditing=false headerText=@Localizer["Cod."].Value textAlign="Left" width="90"></e-grid-column>
<e-grid-column field="ConceptName" allowEditing=false headerText=@Localizer["Desc."].Value textAlign="Center" width="190"></e-grid-column>
<e-grid-column field="VehicleCode" allowEditing=false headerText=@Localizer["C.Veh"].Value textAlign="Left" width="90"></e-grid-column>
<e-grid-column template="#codevehicle"
textAlign="Left"
allowResizing="false"
allowEditing="true"
allowFiltering="false"></e-grid-column>
<e-grid-column field="ContractCode" allowEditing=false headerText=@Localizer["Contrato"].Value textAlign="Left" width="115"></e-grid-column>
<e-grid-column template="#codecontract"
textAlign="Left"
allowResizing="false"
allowEditing="true"
width="90"
allowFiltering="false"></e-grid-column>
<e-grid-column field="Quantity" headerText=@Localizer["C."].Value editType="numericedit"
textAlign="Right"
edit="@(new {@params = new Syncfusion.EJ2.Inputs.NumericTextBox() {ShowSpinButton = false}})"></e-grid-column>
<e-grid-column field="Discount" headerText=@Localizer["Dto"].Value editType="numericedit" width="95" textAlign="Right" edit="@(new {@params = new Syncfusion.EJ2.Inputs.NumericTextBox() {ShowSpinButton = false}})"></e-grid-column>
<e-grid-column field="Price"
textAlign="Right"
headerText=@Localizer["Prec."].Value editType="numericedit" width="85" edit="@(new {@params = new Syncfusion.EJ2.Inputs.NumericTextBox() {ShowSpinButton = false}})"></e-grid-column>
<e-grid-column field="Unity"
textAlign="Right"
template="#unityconcept" headerText=@Localizer["Uni."].Value width="85" allowEditing="false"></e-grid-column>
<e-grid-column field="Subtotal"
textAlign="Right"
headerText=@Localizer["Sub"].Value editType="numericedit" width="80" edit="@(new {@params = new Syncfusion.EJ2.Inputs.NumericTextBox() {ShowSpinButton = false}})"></e-grid-column>
</e-grid-columns>
</ejs-grid>
<input asp-for="Invoiceitemsjson" type="hidden" />
<script id="codeconcept" type="text/x-template">
<button type="button" id="conceptselect" class="btn btn-primary btn-sm" onclick="showLineModal();" >
<i class="material-icons">search</i>
</button>
</script>
<script id="codevehicle" type="text/x-template">
<button type="button" id="vehicleselect" class="btn btn-primary btn-sm" onclick="showLineVehicleModal();" >
<i class="material-icons">search</i>
</button>
</script>
<script id="codecontract" type="text/x-template">
<button type="button" id="contractselect" class="btn btn-primary btn-sm"
onclick="showLineContractModal();"
>
<i class="material-icons">search</i>
</button>
</script>
We want to have a slightly better less spacing between columns and we dont find in the docs where act. If you look at the picture we might
1. The spacing between line code and line desc smaller.
2. the spacing between cols C adn Dto lesser.