GXT3 Grid Paging toolbar disabled after filtering
Hi, it happened that sometimes using the columns filter, after reloading (applying the filter), the paging tool bar appears disabled.
I'm using GXT 3.04.
The filtering is done in the server side. This happens when using checkbox fields, or when using a text field for filtering. It seems that if you use the filters quickly the grid attempts to reload the data (this is usually when you are writing, you write and then delete and write again). The data is loaded correctly, but the toolbar remains disabled.
However, after the paging toolbar is disabled, if I continue editing the filters value or applying sort, the grid stills works. I don't get any exception, neither in the server side nor in GWT. It seems that all is working, also the next page button still works.
Had it. It was a bug in my code, kinda
I had this problem, and worked around it. On a hunch, I figured I was loading the RPC data multiple times and GXT wasn't handling the multiple loads correctly, since the paging toolbar works fine in other grids. I was right!
My advice is to put a breakpoint in your RPCProxy.load() implementation and see if it's being called multiple times on start-up. If so, GXT won't take that well (also, you're losing valuable bandwidth by loading the data twice). Put in a fix to only load the data once, and the grey'd out / disabled paging toolbar should go away.
I hope that helps,