Announcement

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

    getCurrentExpansionComponent not fully implemented

    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:
    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());
    			}	
    		}
    	}
    });

    #2
    Just letting you know that we have an engineer looking into this.

    Isomorphic.

    Comment


      #3
      You will see a fix for this in tonights nightly build of 4.1.

      Comment


        #4
        Thanks, it's working

        Comment

        Working...
        X