Keep sorting and sort arrows after datagrid dbprovider changed
I followed this tutorial http://justinjmoses.wordpress.com/2008/06/26/flex-keeping-the-sort-on-a-datagrid-when-you- change-the-dataprovider/
created listeners
that keeps old sorting of datagrid after dataprovider changed, but displaying sort arrow on the wrong column(always the 1st column), how do I fix it?
//constructor
public function FilterDatagrid()
super();
addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, onDataGridDataChange, false, 0, true);
private var currentSort:mx.collections.Sort;
private function onDataGridDataChange(evt:CollectionEvent):void
//get the new data collection
var ac:ArrayCollection = this.dataProvider as ArrayCollection;
//attach the collection change event
ac.addEventListener(CollectionEvent.COLLECTION_CHANGE, onCollectionChanged,false,0,true);
//if a sort was in place before the data was changed, make sure you apply the sort to this new data
if (currentSort != null)
ac.sort = currentSort;
ac.refresh();
private function onCollectionChanged(evt:CollectionEvent):void
if (evt.kind == CollectionEventKind.REFRESH)
var ac:ArrayCollection = evt.currentTarget as ArrayCollection;
currentSort = ac.sort;
the datagrid uses XML as dataprovider and uses labelFunction and sortCompareFunction on each column, not sure if it matters
Similar Messages
-
Wifi keeps scanning and dropping even after connected to home network. Never had this issue until the update, and now my phone runs slow and terrible. Horrible update!! Any ideas on a fix?
It's important that you have a steady WiFi connection, ZealousEdge. What phone do you have? Is your phone unable to connect to any WiFi network? If you can, please try deleting the saved WiFi network and re-adding it.
AndreaS_VZW
Follow us on Twitter @VZWSupport
If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!! -
I downloaded from iTunes a hd movie for the first time. What a disaster ! Keep stopping and looks like after 2 days has not been downloaded. What am I suppose to do? Can I get my money back? How?
Contact iTunes suport... http://www.apple.com/support/itunes/contact/
It sounds like you might have a slow wifi internet connection? How fast is it with a speed test from your iPad. -
Why does i tunes keep bouncing and not open after I have done an update
why does i tunes keep bouncing and not open after I have done an update ?
Hello, romani-jo.
Thank you for visiting Apple Support Communities.
Try resetting your System Management Controller or SMC. Try launching iTunes after processing these steps. If the issue persists, try downloading a fresh copy of iTunes by accessing the second link below.
Intel-based Macs: Resetting the System Management Controller (SMC)
http://support.apple.com/kb/ht3964
http://www.apple.com/itunes/
Cheers,
Jason H. -
After my last update with Firefox, my right-hand scroll bar no longer has up and down arrows. I really need to get them back. I'm using a Mac laptop.
So the whole button is missing. I have no idea how to fix the default theme, since it is inside omni.ja, which is not accessible from just any archive handler, and I have not found any way to open it. My problems were with third party themes, and I managed to fix those by editing parts of the themes.
Maybe you could set up scrollbars yourself by using a userChrome.css file plus images. You could get some tips by opening third party themes and looking at their scrollbars.css files.
* http://kb.mozillazine.org/UserChrome.css -
HT5129 My wheel just keeps turning and never stops after I press OK.
When MobileMe is scanning to migrate, it never stops. Color wheel just keeps turning and I have to ForceQuit each time.
What cat flavor does your Mac have? Lion? Mountain Lion? Older cats?
-
Since maverick upgrade itunes keeps quiting and mac mail want let be change the font,
Since upgrade to 10.9 itunes keeps quiting and i cant change the front in mac mail
(is it just me or was this upgrade a waste of time)Choose Preferences from the Finder menu, click on the General tab, and uncheck the box to open folders in a new tab.
(117195) -
Collection that keeps duplicate and sorted
hi
i'm just trying to find out if there is java collection any type of map or set that can hold duplicate keys and in order or just duplicates. Maybe another type that allows it
thanksjava.util.PriorityQueue
-
Signature Problems - how to keep links and video capability after inserting signature in Reader
I create inspection reports where the first page is a signed letter and the rest of the report is text, videos and links to pictures within the document (created in Adobe Acrobat X Pro). When we sign the pdf in Reader XI the links and videos no longer work. Is there a way around this?
Hi Popsickle1974,
Does this issue occur with other pdfs as well?
Regards,
Rave -
Reporting Services Error after Interactive sorting and drill down in pps
Hi
i have a report that has a drill down option that shows all workgroups within a specific parent group and an interactive sorting ass well on both columns parent group & workgroup
This is displayed in pps combined with a SharePoint
---the problem is that after sorting the parent group column by name i then press the drill through icon (+) next to it hopping to see all workgroups related to each parent group
- but instead
i receive this Reporting Services Error :
The value for parameter 'SortItem' is not specified. It is either missing from the function call, or it is set to null. (rsMissingParameter) Get
Online Help
If I don't press the sorting and just drill through it works fine. the sorting itself also works fine.
any suggestions ?
Hi Hyaron,
I am unable to reproduce the issue in my test environment. How did you add the drilldown feature? Were you doing that by setting visibility of the column or of the group? Please ensure to add the drilldown functionality by set the visibility of the workgroup
from the Grouping Pane in the Report Designer.
How did you add the Interactive Sorting on the headers of the two columns? Based on the drilldown functionality, the Interactive Sorting on the second column doesn’t work. So, you can move the Interactive Sorting on the second column. When configuring the
Interactive sorting on the first column, you should set the parent group to sort, and sort by the field that the parent group groups by.
Hope this helps.
Regards,
Mike Yin
TechNet Community Support -
Apple tv keeps disconnecting and pausing
Apple tv keeps disconnecting and pausing even after installing fibre optic
Have you even tried the troubleshooting steps provided?
If you have not, prove me wrong.
Physically connect the ATV via Ethernet.
Stream content from a computer via HomeSharing or from one of the Apps on the ATV. Does the stuttering and buffering continue? -
what can i do to sort my ipod touch 4th gen, when ever i connect it to my laptop my itunes keeps saying, and i quote "itunes could not connect to this ipod, an unknown error has occured" please helpppppp i have not had my ipod for long either
- Try restoring on another computer.
- Make an appointment at the Genius Bar of an Apple store.
Apple Retail Store - Genius Bar -
I just upgraded to iTunes 12 and had all sorts of problems. After several restores I seem to be able to sync my iPad with iTunes BUT I can't delete anything off my iPad from iTunes. Any ideas on what to do?
-Me again - it also won't upload the few new pictures I have on the computer onto the iPad without deleting all the photos that are already there....
-
How to find Invoices approved by me and sort them after supplier?
Hi,
Please help ?
How to find the invoices which I have approved in SAP ?
how to find the invoices which I have approved in SAP and sort after supplier ?
Can these searches be combined ?
I appreciate your immediate reply
Regards,
Sairam.What do you mean by approving invoice?
-
My iPad froze and it can't turn on. I've watched some youtube videos on how to restore my iPad. Occasionally, it worked on my friend's iPad, but not in mine. It can't restore because some sort of codes appear after I try to restore it. Help pls thank you
Your iPad has be jailbreaked . None here can help.
Maybe you are looking for
-
MP3 plays in iTunes but not iPhone
I have the iPhone 3G running 2.0.2 software. I have a bunch of .mp3 files that I loaded into iTunes and then sync'd with my iPhone. There is one mp3 that plays just fine in iTunes but will not play on my iPhone. When I select the song on the iPhone,
-
I was printing a PDF using Adobe Acorbat Reader X. I printed one doucment just fine. Then when I selected the second document I got an error "The document could not be printed." Then a second error "There were no pages selected to print." I closed Re
-
Defect in Acrobat XI for mac osx
Using Acrobat XI for mac osx I opened a bank statement pdf. I redacted the account numbers. It gave me option to remove hidden metadata. I removed the hidden metadata. I saved the document and it removed character "I" from many places in the document
-
Problem in data coming to PI system from SAP?
Hello All, I facing problem with the data coming from SAP system to PI system. in VT02n give the shipment number and after that create some thing and trigger an IDOC. when the data come to PI system, i checked in moni i saw that data getting mixed.
-
I can't copy and paste from Pages anymore!
I'm running on Yosemite and newest Pages Version (updated today) and now I can't copy texts from Pages (e.g. into InDesign or Photoshop) anymore. I have to convert it into simple text, then open it with TextEdit to make copy & paste possible again. P