Announcement

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

    Bug report: IPickTreeItem can't get current display value

    SmartGWT2.4,Firefox10,IE8,Windows 7


    Code:
    DataSource dataSourceID = ComboParentDataSource.getInstance("dataSourceID","***");
    IPickTreeItem categoryItem3 = new IPickTreeItem();   
    categoryItem3.setTitle("");   
    categoryItem3.setWidth(180);
    categoryItem3.setName("MID");
    categoryItem3.setDisplayField("NAME");
    categoryItem3.setValueField("ID");
    categoryItem3.setDataSource(dataSourceID);   
    categoryItem3.setRequired(Boolean.TRUE);
    categoryItem3.setDefaultValue("");
    categoryItem3.setLoadDataOnDemand(false);  
    	
    
    categoryItem3.addChangedHandler(new ChangedHandler() {
    	public void onChanged(ChangedEvent event) {
    		FormItem item = event.getItem();
    		System.out.println("getDisplayValue: "+item.getDisplayValue());//here show olad(/last) value
    		
    	}
    });
    add a dataSource for IPicktreeItem,for get the display value,but always the old(/last) value,NOT the current value.

    July
Working...
X