View Full Version : GRID: Sort on load doesn't show sorting arrows on columns.
creasser
2 Sep 2012, 8:05 AM
38408
Sorting is fully functional, but arrow doesn't show up:
sortOnLoad: true,
sorters: { property: 'date', direction : 'DESC' }
Does anyone know, how to get that arrow there?
Thanks in advance!
C.
Edit:
Using ExtJS 4.0.7.
Farish
2 Sep 2012, 11:25 PM
If you are using remoteSort, then sortOnLoad is ignored according to documentation. Also, the default value for sortOnLoad is true so it should work. You can try the following two things:
sorters: ['date']
OR
store.on('load', function() {
store.sort('date', 'ASC');
});
Also try it with some integer or string field instead of a date field and see if that is somehow causing the problem.
creasser
3 Sep 2012, 4:44 AM
Thanks for ur answers, but none of these solutions work :-(
Even tried with another field than date.
scottmartin
3 Sep 2012, 7:31 PM
Please verify you are using 4.1.1 GA
Scott.
creasser
4 Sep 2012, 10:11 AM
I'm sorry, using Ext JS 4.0.7.
Thread post edited.
scottmartin
4 Sep 2012, 10:19 AM
Please try to upgrade if possible. There were numerous issues with 4.07.
Scott.
creasser
4 Sep 2012, 10:22 AM
I tried, but unfortunately it causes a plenty of troubles :-/
scottmartin
4 Sep 2012, 10:25 AM
The move to 4.1.1 is not always smooth .. depending on your code.. but it is well worth the effort.
4.07 allowed a lot of poorly configured layouts to exist and the grid scrolling was a bit of a mess.
Please try to isolate your upgrade issues and move forward. You will be pleased.
Scott.
creasser
4 Sep 2012, 10:42 AM
Ok, thanks for ur replies!
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.