Hi is there anyone that can help me clear up this error.
I'm trying to whenever I change the selected entry in the grid (either
with the down key or by clicking another row), to pick up data from
the selected row.     "uniqueid" is one of the columns in the grid and
it happens to be the key for the object being displayed.    I've tried
the following code, but when I add this code I get the error 'null' is
null or not an object.    I also lose my selection highlight in the
grid.
Thanks in advance,
Dan


private GridPanel gpContacts;
private String selectedUniqueID;
   .
   .
   .

gpContacts.getSelectionModel().addListener(new
RowSelectionListenerAdapter() {
    public void onSelectionChange(RowSelectionModel sm) {
        if (sm != null)
            selectedUniqueID=sm.getSelected().getAsString
("uniqueid");
    }
});

--

You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en.


Reply via email to