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

Fixed Row height with vertically centered text

3 Answers 171 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Meital
Top achievements
Rank 1
Meital asked on 03 Sep 2012, 06:41 AM
Hi,
I'm currently evaluating your Grid component.
One thing I could not do is center my text horizontally in a cell and preserve the cell's fixed height.
I do not want my cell to change its size according to the text (which again , should be vertically align to middle).
The text should be cut when its overfloaing over the cell height.

How Can I achieve that ?

Thx
Sagi

3 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 03 Sep 2012, 08:04 AM
Hello,

Please try with below code snippet.
<telerik:GridBoundColumn>
                        <ItemStyle HorizontalAlign="Center" Height="50px" />
                    </telerik:GridBoundColumn>


Thanks,
Jayesh Goyani
0
Meital
Top achievements
Rank 1
answered on 05 Sep 2012, 05:39 PM
I'm trying to achieve the vertical alignment with template column.
Lets assume this template column contains a div or a table.
How can I vertical align the text inside them ?
0
Jayesh Goyani
Top achievements
Rank 2
answered on 06 Sep 2012, 09:15 AM
Hello,

Please try with below code snippet.
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Meital
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Meital
Top achievements
Rank 1
Share this question
or