I am sorry if it came across that I was implying that SmartGWT wasn't working. I was wondering what _I_ might be doing incorrectly before trying to point to a bug in SmartGWT.
To update, I think the problem stems from the fact that I'm clicking on a group header, and when I attempt to retrieve its values via getAttribute*, I get NullPointerExceptions (which caused the event cancellation behavior that Isomorphic correctly pointed to). I've headed this off by calling record.getSingleCellValue() before calling getAttribute. If this call returns a non-null, then I know that the record is a header. Is there another method or way of going about this that would provide the same functionality? I've tried printing our getIsSeparator() but that always seems to be false for group headers.
To be clear, this is what I'm doing as a check:
Code:
public void onCellClick( CellClickEvent event )
{
// Retrieve information about the record clicked on
final ListGridRecord record = event.getRecord();
// Only process this record if it's a real record (and not a group header)
// Group headers will have only a single cell value
if( record.getSingleCellValue() == null )
{
final int engineId = record.getAttributeAsInt( EngineDataSource.ENGINE_ID );
Leave a comment: