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!
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!
Try
RecordList recordList=comboBoxItem.getValueAsRecordList();
Record[] records=recordList.getRange(0, recordList.getLength());
RecodList support toArray method to get all records.
RecordList recordList=comboBoxItem.getValueAsRecordList();
recordList.toArray()