:: Forum >>

setSelectionMode() is not a function ???

Please, can U anyone tell me What I am doing Wrong ?

see the example:

var grid1 = new AW.Grid.Extended;

    // define data formats
    var str = new AW.Formats.String;
    var num = new AW.Formats.Number;

    grid1.setCellFormat([str, str, num, num, num]);

    // provide cells and headers text
    grid1.setCellText(grid1_data);
    grid1.setHeaderText(grid1_Columns);

    // set number of rows/columns
    grid1.setRowCount(20);
    grid1.setColumnCount(5);
    [b]grid1.setSlectionMode("single-row");[/b]

    // enable row selectors
    grid1.setSelectorVisible(false);
    grid1.setSelectorText(function(i){return this.getRowPosition(i)+1});

    // set headers width/height
    grid1.setSelectorWidth(28);
    grid1.setHeaderHeight(20);

    grid1.setCellEditable(false);

    grid1.setFixedLeft(5);
    grid1.setVirtualMode(true);


Error Console always says the function does not exsist and the Grid is not displayed...

:(

PLS ASAP... THX
ASJ
Saturday, April 22, 2006
Missing "e" maybe??
grid1.setSlectionMode("single-row");
grid1.setSelectionMode("single-row");
.............#
the message should say //setSlectionMode() is not a function//
Saturday, April 22, 2006
LOL ;-)

What an Idiot of me... I just didnt realy read that... just copied & pasted from the documentation page. Perhaps that was cause I was programing all the day and it was close to 1:00 AM here... Tired a bid & blind :D:D:D

Thanax
ASJ
Sunday, April 23, 2006

This topic is archived.


Back to support forum

Forum search