Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Listgrid.getRecordIndex(ListGridRecord) and Tree.closeFolder(TreeNode) throws cast ex

    GWT: 2.5.0
    SGWT: 4.0d latest nightly
    Browser (dev mode): Firefox (latest)

    Hi all,

    Listgrid.getRecordIndex(ListGridRecord) and Tree.closeFolder(TreeNode) throws

    Code:
     Cannot cast ListGridRecord or TreeNode to com.google.gwt.core.client.JavaScriptObject

    Any help?
    Thanks.
    BR
    Marije

    #2
    I think issue is this method:

    Code:
        public native int getRecordIndex(ListGridRecord record) /*-{
            var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();
            var ret = self.getRecordIndex(@com.smartgwt.client.widgets.grid.ListGridRecord::new(Lcom/google/gwt/core/client/JavaScriptObject;)(record));
            return ret;
        }-*/;
    i.e.
    new(Lcom/google/gwt/core/client/JavaScriptObject;)
    which causes cast exception.

    BR
    Marije

    Comment


      #3
      This issue should be resolved in the 1-28-2012 nightly development build.

      Comment

      Working...
      X