I'm testing smartGWT 4.1p
Browser Firefox 25.0.1
Linux Mint 14
The documention say:
Parameters:
record - rowNum or record to get the expansionComponent for
My code from smartGWT 3.1p that is working:
Browser Firefox 25.0.1
Linux Mint 14
The documention say:
Parameters:
record - rowNum or record to get the expansionComponent for
My code from smartGWT 3.1p that is working:
Code:
private Record expansionRecord = null;
....
getGrid().addRecordExpandHandler(new RecordExpandHandler() {
@Override
public void onRecordExpand(final RecordExpandEvent event) {
expansionRecord = event.getRecord();
//This is where I get an error
//The method getCurrentExpansionComponent(Integer) in the type ListGrid is not applicable for the arguments (ListGridRecord)
Canvas expandComponent = getGrid().getCurrentExpansionComponent(new ListGridRecord(expansionRecord.getJsObj()));
if(expandComponent == null){
SC.say("No Expand Component where specified");
collapseRecord();
}else{
if(expandComponent instanceof GappGridExpandLayout){
expandComponent.resizeTo(((GappGridExpandLayout) expandComponent).getResizeWidth(), ((GappGridExpandLayout) expandComponent).getResizeHeight());
}
}
}
});
Comment