This is a migrated thread and some comments may be shown as answers.

Grid data indentation

1 Answer 139 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vinod
Top achievements
Rank 1
Vinod asked on 05 Jul 2019, 05:47 AM

Hi,

How do you indent numeric data to the right inside a Grid.

Regards,

Vinod

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 05 Jul 2019, 07:10 AM
Hello, Vinod,

This can be achieved by adding a custom class to the desired column and than based on that class to align them with CSS:

td.cell-right {
    text-align: right
}

This is an example:

https://stackblitz.com/edit/react-ey6hng?file=app/main.jsx

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Vinod
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or