Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Issue with ListGrid record selection on upgrade from 3.0 to 3.1/4.0

$
0
0
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

Viewing all articles
Browse latest Browse all 4756

Trending Articles