axeldxter
3 Jun 2008, 2:07 PM
Hi. I've been having a problem from some time now when trying to update the values of a BaseTreeModel that is added to a TreeStore, which in turn is binded to a TreeTable. The code looks like this:
property = new BaseTreeModel();
property.set("name", "Name");
property.set("value", "Value");
store = new TreeStore();
store.setMonitorChanges(true);
store.add(property);
binder = new TreeTableBinder(propertyGrid, store);
binder.setDisplayProperty("name");
binder.init();
Then later, I change the value of property:
property.set("value", "NewValue")
But the value in the TreeTable is never refreshed. Is it some bug? Or there's no way to change the value and inmediately see the change? It doesn't matter if it is a completely different code, but I need something that can do this.
Thanks
property = new BaseTreeModel();
property.set("name", "Name");
property.set("value", "Value");
store = new TreeStore();
store.setMonitorChanges(true);
store.add(property);
binder = new TreeTableBinder(propertyGrid, store);
binder.setDisplayProperty("name");
binder.init();
Then later, I change the value of property:
property.set("value", "NewValue")
But the value in the TreeTable is never refreshed. Is it some bug? Or there's no way to change the value and inmediately see the change? It doesn't matter if it is a completely different code, but I need something that can do this.
Thanks