:: Forum >>

image on the right of cell?


obj.setCellTemplate(new AW.Templates.ImageText);
obj.setCellImage("search", 5,11);


The image is on the left
is it possible to put the image on th right?
thierry
Wednesday, October 28, 2009

http://www.activewidgets.com/javascript.forum.19751.2/image-vetical-align-in-grid.html
http://www.activewidgets.com/javascript.forum.10042.3/how-do-i-align-image.html
Wednesday, October 28, 2009
I test this
#grid2 .aw-column-5 .aw-item-image{position:absolute;right:-4px;top:50%;margin-top:-9px}
The image is on the right

But I want the text to be on the right and it is hidden by the image.
The text bust be rriht-aligned but just before the image which is on the right
Wednesday, October 28, 2009
Sorry, I am null in CSS, but could be something like this?
#grid2 .aw-column-5 .aw-item-text {padding-right:19px}
#grid2 .aw-column-5 {text-align: right}
Wednesday, October 28, 2009
great that is ok
thank you a lot

just a last question
how to for a particular cell and not for the whole column

#grid2 .aw-column-5 {text-align: right}
obj.getCellTemplate(5,0).setStyle('text-align', 'right');

#grid2 .aw-column-5 .aw-item-text {padding-right:19px}
Which function?
thierry
Wednesday, October 28, 2009
I have the solution

obj.getCellTemplate(5,0).getContent("box/text").setStyle('padding-right','19px');

thank you again
thierry
Wednesday, October 28, 2009

This topic is archived.


Back to support forum

Forum search