[2.0 Trunk] PagingToolBar reload icon does not disable correctly
[2.0 Trunk] PagingToolBar reload icon does not disable correctly
Disabling a PagingToolBar replaces the refresh button icon with the animated loading gif, ie:
images/default/grid/refresh.gif
is replaced with:
images/default/grid/loading.gif
This is only correct if the PagingToolBar is disabled because it is loading (eg via the BeforeLoad event). It is not correct if the PagingToolBar is simply disabled because there is no data displayed.
refresh,gif probably needs its own diabled version refresh-disabled.gif like the other PagingToolBar buttons have which is displayed when the PagingToolBar is disabled. loading.gif should only be displayed if the PagingToolBar is waiting for a load to finish.
I have a simular problem: If RPC fails for my pagable grid I want to 'manually' enable my PageingToolBar. I do this by calling toolbar.enable(), the problem is that the loading.gif icon stays.
Maybe the icon shall be changed to refresh.gif whener the toolbar gets enabled? Or is there a simple way to manually shift the icons?