:: Forum >>

x lines with headres???

Can i show a table like this: ???

color:blue | header1 | header2 | header3 | header 4 |
-----------------------------------------------
color: red | header5 | header6 | header7 | header8 |
-----------------------------------------------
color:blue | data 01 | data 02 | data 03 | data 04 |
-----------------------------------------------
color: red | data 05 | data 06 | data 07 | data 08 |

Are this multi-line-headers??? I´m not sure.... :-/
Ulf
Monday, September 18, 2006
Yes, use setHeaderCount() -

http://www.activewidgets.com/aw.ui.grid/header-count.html

var obj = new AW.Grid.Extended;
obj.setColumnCount(10);
obj.setRowCount(100);
obj.setCellText("cell");

obj.setHeaderCount(2); // 2 header rows
obj.setHeaderText("header");

document.write(obj);
Alex (ActiveWidgets)
Monday, September 18, 2006
hmm....okay but can I show a table with 'obj.setHeaderCount(2);' like this?:

<img src="http://parthi.pa.funpic.de/down/headers.gif"> ???

when i setHeaderCount(2) the second headerline will have the same width like the first headerline....but this isn´t what i mean....
I want to change the width of the first headerline und all (orange) rows will get this, but not the second header and the (yellow) rows.

Do you know what i mean???
Sorry for my english..... :-)
Ulf
Tuesday, September 19, 2006
SORRY -> last POST was wrong!!!!!

look at the picture (thats correct), please.....
How can i show a table like this???
The method setHeaderCount(2) set the headers not shifted (german->versetzt)*g

sorry for my english.... :-)

Ulf
Tuesday, September 19, 2006
I'll be back ;-)

When i used the new AW.UI.Grid; all is allright, i can scroll all rows...but:
When I used the < new AW.Grid.Extended; >, the first row of my table will be 'freeze' and do not scroll, why? Can i handle this???
my code:
<script>
var obj = new AW.Grid.Extended;
obj.setColumnCount(10);
obj.setRowCount(100);
obj.setRowCount(100);
var t = ["cell"];
for(var i=0; i<obj.getRowCount(); i++) {
obj.setCellText("PCH-ZU 8",1,i*2+1);
}

// 2 header rows
obj.setHeaderCount(2);

// function - all columns/rows
obj.setHeaderText(function(col, row){return ""});

// array - row 1
obj.setHeaderText(["","Kfz-Kenn."], 1);

// single value - col 0, row 0
obj.setHeaderText("** header **", 0, 0);

document.write(obj);

</script>
Ulf
Tuesday, September 19, 2006
as I understand, the header is not supposed to scroll. This is what I would expect, including the second row of the header.
Joel
Tuesday, September 19, 2006
hätte ich nur besser aufgepasst in Englisch *ggg

sorry i mean the first column :-/
the first column isn´t scroll when i scroll to left or right....

I'm awfully sorry -> my english :-)
Ulf
Tuesday, September 19, 2006
Yes, you need obj.setFixedLeft(0); default value is '1' .

Carlos
Tuesday, September 19, 2006
THANKS :-)
Ulf
Tuesday, September 19, 2006

This topic is archived.


Back to support forum

Forum search