google-code-export / tatami

Automatically exported from code.google.com/p/tatami
1 stars 1 forks source link

grid.getItemFromRow error in RowStyler #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Tatami 1.2Beta , GWT 1.5

Please provide any additional information below.

/////////////////////////////////
Sorry I can't write English well..

public class MyStyler implements RowStyler {

    private Grid grid;
    public MyStyler(Grid grid) {
        this.grid = grid;
    }
    public String getRowCSSClasses(int rowIndex, boolean selected,  
boolean mouseover, boolean odd) {
        System.out.println("rowIndex : "+ rowIndex);

//      Item corresponding = grid.getItemFromRow(rowIndex);
//      
System.out.println(grid.getItemFromRow(rowIndex).getValues("name"));
//      String name = (String)corresponding.getValues("name");
//      String name1 = (String) 
corresponding.getValue("name","name");
//      String name2 = (String)grid.getDataAt(rowIndex, 1);

//      return "explainVersion";
        return null;
    }

    public String getRowCSSStyles(int rowIndex, boolean selected,   
boolean mouseover, boolean odd) {
        return null;

    }
}

see link... 
http://groups.google.com/group/tatami/browse_thread/thread/983834454444f1bd
#

Original issue reported on code.google.com by aquu...@gmail.com on 16 Sep 2008 at 7:14

GoogleCodeExporter commented 9 years ago
This shows a bug in Tatami : it tries to call the styler when rows data has not 
been
yet loaded by dojo.

It is fixed, and will be released asap (in Tatami1.2 final).

Original comment by rdunk...@gmail.com on 16 Sep 2008 at 8:02