TelerikGrid GridColumn TextAlign property not working for EditorTemplate

1 Answer 327 Views
Grid
Claudio
Top achievements
Rank 2
Bronze
Bronze
Iron
Claudio asked on 01 Jun 2022, 11:26 AM

If i set the TextAlign property on GridColumn it work well for read Template, but not for EditorTemplate.

It's a bug?

There is a workaround?

Thanks

1 Answer, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 06 Jun 2022, 06:04 AM

Hello Claudio,

The TextAlign property applies the text-align CSS rule and it is supposed to align the text in a container. In the EditorTemplate you have an editing component that is not supposed to be aligned with the text-align CSS rule. If you add a component, let's say a textbox, it would not be aligned even in the Template. 

To achieve the desired behavior you can take a look at the CSS Layout article of the W3 school.

Regards,
Svetoslav Dimitrov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Claudio
Top achievements
Rank 2
Bronze
Bronze
Iron
Answers by
Svetoslav Dimitrov
Telerik team
Share this question
or