Hello, I have a calendar bound to a datasource (let's call it DSA). One of those fields (DSAF) must be set with a fixed set of values, so I've bound it to a combobox. That values are retrieved from a datasource (DSB) so I made the following:
The problem is that, when I open the editor for an event, I get the combo box, but once I click on in, I get an empty list with the message "Loading Data..." and nothing more. It does not get data at all.
I tried bounding this datasource to a list grid and it gets filled, but for the combo it does not call even the fetch operation. I've set the datasource to show a message with Window.alert on every fetch and I get it when it's called from the list but not when I open the combobox list.
Both datasources are GWT RPC Datasources and I'm using GWT 1.6.4 with SmartGwt 1.1.
Code:
Calendar cal = new Calendar();
cal.setDataSource(DSA.getInstance());
......................................................
ComboBoxItem item = new ComboBoxItem(DSAF);
item.setDisplayField(DSBF1);
item.setValueField(DSBF2);
item.setOptionDataSource(DSB.getInstance());
item.setAutoFetchData(true);
TextItem descItem = new TextItem("description");
cal.setEventEditorFields(descItem,item);
I tried bounding this datasource to a list grid and it gets filled, but for the combo it does not call even the fetch operation. I've set the datasource to show a message with Window.alert on every fetch and I get it when it's called from the list but not when I open the combobox list.
Both datasources are GWT RPC Datasources and I'm using GWT 1.6.4 with SmartGwt 1.1.
Comment