Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bug in ListGrid::getFocusRow()

    I believe the ListGrid::getFocusRow() call erroneously tries to map current focused row (even if there is none, i.e. newly loaded data) to an int which causes a JSNI exception:

    com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.smartgwt.client.widgets.grid.ListGrid::getFocusRow()': JS value of type null, expected int

    So I guess either getFocusRow() should return a boxed/nullable Integer instead or it should return -1. There also doesn't seem to be a hasFocusRow to work around this issue.

    #2
    ListGrid.getFocusRow() now has a return type Integer and the method returns null if no row is focused.

    Thanks,
    Sanjiv

    Comment

    Working...
    X