SmartGWT ComboBoxItem get all Records

天涯浪子 提交于 2020-01-06 08:26:45

问题


How can I get all Records from a SmartGWT ComboBoxItem?

I add the Records as a Datasource. Did not found any way to retrive all Records.

Thank you in advance!


回答1:


Try

RecordList recordList=comboBoxItem.getValueAsRecordList();

Record[] records=recordList.getRange(0, recordList.getLength());



回答2:


RecodList support toArray method to get all records.

RecordList recordList=comboBoxItem.getValueAsRecordList();

recordList.toArray()


来源:https://stackoverflow.com/questions/23337604/smartgwt-comboboxitem-get-all-records

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!