:: Forum >>

Dynamic style of cell

Can we give different style for different cells in the table ? If yes then how ?
Tuesday, March 25, 2008
The simplest way is just assign the style attributes directly -

grid.getCellTemplate(col, row).setStyle("color", "red");

For a dynamic style example look here -

Alex (ActiveWidgets)
Tuesday, March 25, 2008
HI Alex,
Thanx for the quick response. It worked.
Can we directly use the styles present in the stylesheet by setting className to the cell-template property and including that stylesheet in the html page ?
If yes then how ?
Tuesday, March 25, 2008
Yes, instead of setStyle() use setClass() method -


You can also use #id selector, for example

#myGrid-row-1 (AW.UI.Grid)
#myGrid-row-1-left (AW.Grid.Extended)

Alex (ActiveWidgets)
Wednesday, March 26, 2008
<div id="content" runat="server" style="height:1300px">
<iframe src="http://nareb.com/wordpress/" name="dynFrame" id="dynFrame" style="width:523px;" runat="server"
frameborder="0" scrolling="no" height="100%"></iframe>


Instead of height=1300px i want my div(content) to dynamically adjust according to iframe height . Any help will be heartily appreciated.

Thanx in advance.
Tuesday, August 5, 2008

This topic is archived.

Back to support forum

Forum search