TreeGrid error after move to smartgwt 1.1

Hi,

I’m facing to the following problem after change the version of smartgwt. Previous version was 1.0b2, now it’s 1.1 (I also test with the lastest build on repository).

The error append on a TreeGrid when I want drag a node to another grid :

Uncaught JavaScript exception 
[java.lang.ClassCastException: com.smartgwt.client.widgets.tree.TreeNode

The code involved is this line :

AssetDSRecord selectedRecord = (AssetDSRecord) treeGrid.getSelectedRecord();

AssetDSrecord :

public class AssetDSRecord extends TreeNode {
....
}

treeGrid is a TreeGrid object and all records in the tree is put like that:

treeGrid.setDataSource(treeDataSource);
....
....
....		
treeDataSource.addData(new AssetDSRecord(....);

I compare if any changes was made on method “getSelectedRecord” between the two versions of smartgwt but I think not.
I’ll put again smartgwt 1.0b2 and the application work fine.

If you have any idea…

Thanks.