Hi all,
I'm experiencing an issue around ListGrid record selection when upgrading from Smart GWT 3.0 to 4.1 (and also 3.1, it seems!). I have a ListGrid with a RecordDoubleClickHandler as follows:
myListGrid.addRecordDoubleClickHandler(new RecordDoubleClickHandler() {
public void onRecordDoubleClick(RecordDoubleClickEvent recordDoubleClickEvent) {
doStuff()
}
});
My doStuff() method has the following:
ListGridRecord record = myListGrid.getSelectedRecord()
This works fine and returns the record that was double clicked in 3.0 but returns a null record in 3.1/4.1.
When setting up my ListGrid, I do the following:
reportGrid.setWidth100();
reportGrid.setHeight(200);
reportGrid.setAlternateRecordStyles(true);
Do I need to set further parameters for this to work in 3.1/4.0?
This is happening in both Chrome and Firefox. I am not getting any JavaScript errors. I am using GWT 2.4.0. There are no server side errors. Any help would be appreciated and please let me know if I need to provide further info - I tried to follow the guidelines as closely as possible.
Dave
I'm experiencing an issue around ListGrid record selection when upgrading from Smart GWT 3.0 to 4.1 (and also 3.1, it seems!). I have a ListGrid with a RecordDoubleClickHandler as follows:
myListGrid.addRecordDoubleClickHandler(new RecordDoubleClickHandler() {
public void onRecordDoubleClick(RecordDoubleClickEvent recordDoubleClickEvent) {
doStuff()
}
});
My doStuff() method has the following:
ListGridRecord record = myListGrid.getSelectedRecord()
This works fine and returns the record that was double clicked in 3.0 but returns a null record in 3.1/4.1.
When setting up my ListGrid, I do the following:
reportGrid.setWidth100();
reportGrid.setHeight(200);
reportGrid.setAlternateRecordStyles(true);
Do I need to set further parameters for this to work in 3.1/4.0?
This is happening in both Chrome and Firefox. I am not getting any JavaScript errors. I am using GWT 2.4.0. There are no server side errors. Any help would be appreciated and please let me know if I need to provide further info - I tried to follow the guidelines as closely as possible.
Dave