PDA

View Full Version : Sort arrow not showing after programmatically sorting grid



AlexSchultz
1 Mar 2012, 1:42 PM
On the app that I am currently working on, we are saving the sort state of the grid so that when users refresh the page, the the sort state is persistent.

The saving and reloading works perfectly, but we lose the sort arrow as a visual indicator when the store is sorted programmatically.

I tried using the updateHeaders method to force a refresh after the load, but that did not work.

mitchellsimoens
2 Mar 2012, 11:11 AM
What Ext JS 4 version are you using? This sounds like a bug that was fixed in newer releases.

AlexSchultz
2 Mar 2012, 12:01 PM
We are using Ext JS 4.0.7

andreat
27 Jul 2012, 3:06 PM
I'm using 4.1.1 and have the same problem. There is a related bug report also, but it doesn't look like it was ever classified:

http://www.sencha.com/forum/showthread.php?140102-Clearing-The-Sort-Arrow-From-a-Grid-Column-When-Calling-myStore.sort()