I may have found a bug with CanvasItem's storeValue() method. I have a ChangedHandler set up on the CanvasItem, and the ChangedEvent is only getting fired the first time I call storeValue() in the CanvasItem. If I make further changes to the value(s) in the CanvasItem, storeValue() keeps getting called, but the ChangedHandler doesn't see any more events.
I've attached a standalone test case to show this behavior, and added a SC.logWarn() each time the event is fired.
When the ChangedEvent is fired, the listener in this this test case also tries to print out the number of records in the ListGrid inside the CanvasItem. This RecordList is the value passed to storeValue(). I'm trying to pull this RecordList from the ChangedEvent, and I'm not getting the results I would expect. I'm not sure if this could be related to the behavior of storeValue() in the first issue I described.
I'm using the 8-25-11 SmartGwt 3.x nightly build, tested in Firefox and Chrome.
Thanks,
Reed
I've attached a standalone test case to show this behavior, and added a SC.logWarn() each time the event is fired.
When the ChangedEvent is fired, the listener in this this test case also tries to print out the number of records in the ListGrid inside the CanvasItem. This RecordList is the value passed to storeValue(). I'm trying to pull this RecordList from the ChangedEvent, and I'm not getting the results I would expect. I'm not sure if this could be related to the behavior of storeValue() in the first issue I described.
I'm using the 8-25-11 SmartGwt 3.x nightly build, tested in Firefox and Chrome.
Thanks,
Reed
Comment