Announcement

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

    [SmartGWT4] ListGrid.getEditRow can return null

    Hello,

    It seems that there was a change to this method which is not correct.

    Before it returned -1 when there was no edit row:
    Code:
        public native int getEditRow() /*-{
            var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();
            var ret = self.getEditRow();
            return ret == null ? -1 : ret;
        }-*/;
    On the new release it would return null/undefined but this is not compatible with the simple type return type.

    Code:
        public native int getEditRow() /*-{
            var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();
            var ret = self.getEditRow();
            return ret;
        }-*/;
    This yields errors when calling the method in our app.

    Tested on SNAPSHOT_v9.0d_2013-03-05/Pro Deployment 2013-03-05.

    Thanks

    #2
    A fix was posted to last night's build. You can try today's development build.

    Comment

    Working...
    X