Wanted to add a column containing GridCommandColumns as first column on the left but the content is right aligned.
is there any way to left align the command buttons
Hi Michael,
Greetings from Syncfusion support.
You can set the TextAlign property of GridColumn to align the contents of the column based on your requirement. Please refer the code below,
|
<GridColumn HeaderText="Manage Records" TextAlign="TextAlign.Left" Width="200"> <GridCommandColumns> <GridCommandColumn Type="CommandButtonType.Edit" ButtonOption="@(new CommandButtonOptions() { IconCss = "e-icons e-edit", CssClass = "e-flat" })"></GridCommandColumn> ... </GridCommandColumns> </GridColumn>
|
Please get back to us if you need further assistance.
Regards,
Renjith R
should have mentioned i did try setting TextAlign to TextAlign.left
but the TD segment still has a style text-align:right
works for a regular column but not a command column
Hi Michael,
We are attaching a sample in which the command column is aligned properly to left when added the TextAlign property. Please download and refer the attached sample and check this from your side.
Please refer the screenshot below,
Kindly refer the attached sample and check this from your side. If you are still facing difficulties, then kindly share with us a simple issue reproducing sample for us to proceed further.
Regards,
Renjith R
tested it and it seems to be an issue that was fixed in a newer version of SF. Looks like we may need to upgrade to a newer version
Hi Michael,
Thanks for your update. Please get back to us if you need further assistance.
Regards,
Renjith R