I am currently utilizing the grid view feature of Kendo UI for Angular. While I have buttons on the grid, the issue is that the text within the buttons is not centered properly despite applying styles such as text-align:center
. Here is the template for my button:
<kendo-grid-command-column title="SPO Item Count" width="120">
<ng-template kendoGridCellTemplate let-dataItem>
<button pButton type="button"
style="margin-bottom:10px;margin-right:10px; width: 100px; text-align:center" (click)="onEditCostClick(dataItem);"
class="p-mr-2 p-mb-2 p-ripple p-button p-component">
{{dataItem.spoItemCount}}
</button>
</ng-template>
</kendo-grid-command-column>
When previewed in the browser, this is the alignment outcome: