Announcement
Collapse
No announcement yet.
X
-
[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:
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 == null ? -1 : ret; }-*/;
This yields errors when calling the method in our app.Code:public native int getEditRow() /*-{ var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()(); var ret = self.getEditRow(); return ret; }-*/;
Tested on SNAPSHOT_v9.0d_2013-03-05/Pro Deployment 2013-03-05.
ThanksTags: None
Leave a comment: