Hi,
Another issue I encountered moving from 8.0 to 8.2p is the following :
I have a TileGrid and an IButton. I setup an observer on the TileGrid's selectionChanged()
event handler, similar to the following :
The observation fires the following method :
Upon changing selection in the TileGrid, the refreshState() gets called twice. The first time
it gets called, anySelected is TRUE (ok) and the second time, anySelected is FALSE (not ok),
therefore my button becomes disabled although I do have a selection in the TileGrid.
I have similar logic in ListGrid components, but the behaviour is inverted, anySelected first
returns FALSE (not ok) and then TRUE (ok), therefore the later event fire fixes up things.
I'd like TileGrid to behave like ListGrid ...
Any idea how this was changed between 8.0 and 8.2p?
Thanks,
Another issue I encountered moving from 8.0 to 8.2p is the following :
I have a TileGrid and an IButton. I setup an observer on the TileGrid's selectionChanged()
event handler, similar to the following :
Code:
btnObj.observe(tileGridObj, 'selectionChanged', 'observer.refreshState()');
Code:
refreshState : function() { var anySelected = tileGridObj.anySelected(); if (anySelected) this.disabled = false; else this.disabled = true; }
it gets called, anySelected is TRUE (ok) and the second time, anySelected is FALSE (not ok),
therefore my button becomes disabled although I do have a selection in the TileGrid.
I have similar logic in ListGrid components, but the behaviour is inverted, anySelected first
returns FALSE (not ok) and then TRUE (ok), therefore the later event fire fixes up things.
I'd like TileGrid to behave like ListGrid ...
Any idea how this was changed between 8.0 and 8.2p?
Thanks,