All these things have been discussed in past. Please search the archives with appropriate keywords to find those threads.
Maybe these things belong in the documentation? Maybe in the FAQ?
Note: a search for "sortArrow" at the site you provided yielded no results (then again if I knew there was a property called sortArrow, I wouldn't have needed to ask the question). A search in my own (unfortunately incomplete) flexcoders archives for "sortArrow" revealed nothing, a search for "sort" revealed too many hits (217), "sort direction" revealed 7 hits, none of which answered my question.
I really think you folks did a great job with flex in general, but I am too frequently frustrated by the documentation... or the lack thereof. My project's deadline is coming up way too fast, and the holes in the documentation cost me many hours each week!
I'm just hoping things continue to improve... I know it is only version 1.5. Perhaps I'm just used to Microsoft's excellent documentation for .net 1.1. Thank god you guys aren't Microsoft. Can you be more like Microsoft? (I know, I'm never satisfied ;)
Sean
On Jul 2, 2005, at 1:09 PM, Abdul Qabiz wrote: Hi, You can get the reference of sort arrow using: dataGridInstance.sortArrow To hide arrow: dataGridInstance.sortArrow._visible = false; To show arrow: dataGridInstance.sortArrow._visible = true; You can use dataGridInstance.placeSortArrow(..) method to show arrow on column that is the current sortIndex. To sort a column( or set the sortIndex) you can call: dataGridInstance.sortItemsBy(fieldName, order) : Void To determine current sorting order, use dataGridInstance.sortDirection property. It returns either 'DESC' or 'ASC All these things have been discussed in past. Please search the archives with appropriate keywords to find those threads. http://www.mail-archive.com/flexcoders%40yahoogroups.com -abdul -----Original Message----- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sean McKibben Sent: Saturday, July 02, 2005 11:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sort arrows in DataGrid Is there a way to set the sortIndex of a datagrid manually, or to manually clear the sort arrow? I have a DataGrid which allows things to be dropped in to it at arbitrary locations, which would change it to unsorted, but I can't figure out how to remove the sort arrow in the header to reflect the unsorted state. Also, is there a way to determine what the current sort order of a column is? It seems like each column keeps its own sort direction separately, so I've had luck just keeping my own array for sort order flags, but there is a chance that the two separate records will get out of parity, given the above case. Keep in mind that I'm doing entirely custom sorting of the datagrid's provider on the headerRelease event. (by setting sortableColumns="true" on the grid, and sortable="true" and sortOnHeaderRelease="false" on the columns) Thanks, Sean -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
---- LSpots keywords ?>
---- HM ADS ?>
YAHOO! GROUPS LINKS
|