SmartGWT ComboBoxItem get all Records

2019-09-01 09:35发布

问题:

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()


标签: java smartgwt