Welcome Guest Search | Active Topics | Sign In | Register

Grid item aligment Options
Seltris
Posted: Friday, July 25, 2008 2:59:31 AM
Rank: Member
Groups: Member

Joined: 10/4/2007
Posts: 20
Hi,

i dont be able to set vertical aligment of grid's row.
I've try with CssText in CellStyle and other voice in "Item Style Set" -> "_default" but don't change the aligment.
There is a way??

Thanks
Saltris
eo_support
Posted: Friday, July 25, 2008 4:04:17 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
Hi,

The default alignment is to the top. If the text is in a single line, you can center align it by:

1. Set the Grid's ItemHeight to x;
2. Add "line-height:x" to Item Style Set -> _Default -> ItemStyle. You may also want to do the same to HoverStyle, SelectStyle, etc;
3. Add "vertical-align:middle" to the CellStyle;

Currently we are not aware of any way to center alignment multiple line text.

Thanks
Seltris
Posted: Sunday, July 27, 2008 11:58:45 PM
Rank: Member
Groups: Member

Joined: 10/4/2007
Posts: 20
Its ok only for text.
I've insered an image in Static Column (Item.Cells(3).Value = "<img ... />") and image is always on top.

Thanks
eo_support
Posted: Monday, July 28, 2008 5:38:29 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
That is correct. Unfortunately we are not aware of any easy way to center align images.
Seltris
Posted: Tuesday, July 29, 2008 12:14:05 AM
Rank: Member
Groups: Member

Joined: 10/4/2007
Posts: 20
I'll will very grateful to you if you fix it in the next release..

Very thanks
Seltris


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.