Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to overlay table cell with grid?
dragosss24
Hello all,
I have the following question. Is there a possibility to overlay a table cell with a grid? I am having a URI image source queried conditionaly. I want to use this image as a background in the table cell and the grid cell to display the value. I want this two to be one in other, centered.
If you have a solution, please let me know.
Thank you very much.
Find more posts tagged with
Comments
bricombs
Good Day
Have you thought about just setting the background image for Cell. You can then use the following code in the onCreate for the Cell to control setting a background image. This is based on if you have bound your dataset to the table.
if (this.getRowData().getColumnValue("STATE") == "CA")
{
this.getStyle().backgroundImage = "background.png"; // you can also use a URI as the source for the image
}
dragosss24
<blockquote class='ipsBlockquote' data-author="'bricombs'" data-cid="115541" data-time="1364582298" data-date="29 March 2013 - 11:38 AM"><p>
Good Day<br />
Have you thought about just setting the background image for Cell. You can then use the following code in the onCreate for the Cell to control setting a background image. This is based on if you have bound your dataset to the table.<br />
<br />
if (this.getRowData().getColumnValue("STATE") == "CA")<br />
{<br />
this.getStyle().backgroundImage = "background.png"; // you can also use a URI as the source for the image<br />
}<br /></p></blockquote>
<br />
Hi bricombs,<br />
<br />
Thank you for your answere. Problem is that I use this condition in the SQL query. I only retreive a cell value that based on the query condition will display an image (traffic light) in an image cell, URI type. What I want is to put one grid with 2 rows, one with value ant the other with u.m. (this one will be a text cell with default value) over this png image. Table cell already has the desired dimensions so the image to fit properly.<br />
<br />
If you have any idea, please let me know.<br />
<br />
Thank you again!
bricombs
Good Day
You can set the background image of a cell in a table and then drop a grid in that cell (overlay). The background image from the cell in the table will show through.