Hi
After upgrade to Smart GWT 5.0, we experience warning message "DSResponse data is expected to be an array of ListGridRecords. This allows the data to be displayed as expected in ListGrids bound to this dataSource."
Has to be DataSource always bound only to ListGrid? I guess not, what about option DataSource for select items or DataSource used for forms.
DSResponse.setData() has method argument of type Record[], but providing array of Record will always show warning message ... then why you rather don't force users to provide argument of type ListGridRecord[]?
DSResponse.getData() return type is Record[]. So it is not possible to use DSResponse.setData(DSResponse.getData()) without warning.
Can you please defend your intention behind the warning message?
Thanks
Matus
After upgrade to Smart GWT 5.0, we experience warning message "DSResponse data is expected to be an array of ListGridRecords. This allows the data to be displayed as expected in ListGrids bound to this dataSource."
Has to be DataSource always bound only to ListGrid? I guess not, what about option DataSource for select items or DataSource used for forms.
DSResponse.setData() has method argument of type Record[], but providing array of Record will always show warning message ... then why you rather don't force users to provide argument of type ListGridRecord[]?
DSResponse.getData() return type is Record[]. So it is not possible to use DSResponse.setData(DSResponse.getData()) without warning.
Can you please defend your intention behind the warning message?
Thanks
Matus
Comment