RE: [flexcoders] Sort arrows in DataGrid
Title: RE: [flexcoders] Sort arrows in DataGrid Hi sorry , i though there is a general problem that i missed here is the code.. ChangesGrid.mxml ChangesGridViewHelper.as - it does not matter where i placed the following code , i tried putting it in grid initialize /helper constructor/ WS populating method . . function initGrid(){ view.RFCViewer.sortArrow._visible = true; view.RFCViewer.sortDirection = "ASC"; view.RFCViewer.sortItemsBy("createdTimeStamp", "ASC") view.RFCViewer.placeSortArrow(); } thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul QabizSent: Tuesday, July 05, 2005 22:52To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Sort arrows in DataGrid Can you please post your sample code? I am interested to see how you are using it. We might suggest some changes to your code. It is hard to predict what is going wrong in your code, without looking at it. Kindly, make a simple sample code example which represents your case and post here.. Thanks -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi CohenSent: Wednesday, July 06, 2005 12:22 AMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Sort arrows in DataGrid Guys i also tried the suggested code - and guess what its not working . any updates on this one ? Shlomi From: Dirk Eismann [mailto:[EMAIL PROTECTED] On Behalf Of Dirk EismannSent: Monday, July 04, 2005 14:06To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Sort arrows in DataGrid Actually, the sortDirection thing was mentioned by Nigel Pegg (aka Component Guru) in the "Flash MX 2004 ActionScript - Training from the Source" book. I tried it in Flex a while back and it worked - so I never worried or even verified if it's documented or not. Sorry if this caused confusion. Dirk. Von: flexcoders@yahoogroups.com im Auftrag von Abdul QabizGesendet: Mo 04.07.2005 12:50An: flexcoders@yahoogroups.comBetreff: RE: [flexcoders] Sort arrows in DataGrid sortDirection was already discussed in flexcoders and I searchedarchives and pasted the same code :)I don't even look at docs, I read Dirk suggestions couple of days back.Agreed, it is not documented.Now I also search archives before answering, if I find an answer there Irefer the same...:)-abdul-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Manish JethaniSent: Monday, July 04, 2005 4:17 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Sort arrows in DataGridOn 7/4/05, Sean McKibben <[EMAIL PROTECTED]> wrote:> Maybe these things belong in the documentation? Maybe in the FAQ?Huh, what are those? :)Okay, I think he forgot to mention that some of the properties he wasrecommending are indeed "undocumented" (they are private to thoseclasses).> Note: a search for "sortArrow" at the site you provided yielded noresults> (then again if I knew there was a property called sortArrow, Iwouldn't have> needed to ask the question).It's there in the API docs. [1][1]:http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/DataGrid.html#sortArrowsortDirection is an internal variable the DataGrid uses to keep trackof which way to sort. It's not a part of the public API.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links<*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/<*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com __This
RE: [flexcoders] Sort arrows in DataGrid
Title: RE: [flexcoders] Sort arrows in DataGrid Can you please post your sample code? I am interested to see how you are using it. We might suggest some changes to your code. It is hard to predict what is going wrong in your code, without looking at it. Kindly, make a simple sample code example which represents your case and post here.. Thanks -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi CohenSent: Wednesday, July 06, 2005 12:22 AMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Sort arrows in DataGrid Guys i also tried the suggested code - and guess what its not working . any updates on this one ? Shlomi From: Dirk Eismann [mailto:[EMAIL PROTECTED] On Behalf Of Dirk EismannSent: Monday, July 04, 2005 14:06To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Sort arrows in DataGrid Actually, the sortDirection thing was mentioned by Nigel Pegg (aka Component Guru) in the "Flash MX 2004 ActionScript - Training from the Source" book. I tried it in Flex a while back and it worked - so I never worried or even verified if it's documented or not. Sorry if this caused confusion. Dirk. Von: flexcoders@yahoogroups.com im Auftrag von Abdul QabizGesendet: Mo 04.07.2005 12:50An: flexcoders@yahoogroups.comBetreff: RE: [flexcoders] Sort arrows in DataGrid sortDirection was already discussed in flexcoders and I searchedarchives and pasted the same code :)I don't even look at docs, I read Dirk suggestions couple of days back.Agreed, it is not documented.Now I also search archives before answering, if I find an answer there Irefer the same...:)-abdul-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Manish JethaniSent: Monday, July 04, 2005 4:17 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Sort arrows in DataGridOn 7/4/05, Sean McKibben <[EMAIL PROTECTED]> wrote:> Maybe these things belong in the documentation? Maybe in the FAQ?Huh, what are those? :)Okay, I think he forgot to mention that some of the properties he wasrecommending are indeed "undocumented" (they are private to thoseclasses).> Note: a search for "sortArrow" at the site you provided yielded noresults> (then again if I knew there was a property called sortArrow, Iwouldn't have> needed to ask the question).It's there in the API docs. [1][1]:http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/DataGrid.html#sortArrowsortDirection is an internal variable the DataGrid uses to keep trackof which way to sort. It's not a part of the public API.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links<*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/<*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Sort arrows in DataGrid
Title: RE: [flexcoders] Sort arrows in DataGrid Guys i also tried the suggested code - and guess what its not working . any updates on this one ? Shlomi From: Dirk Eismann [mailto:[EMAIL PROTECTED] On Behalf Of Dirk EismannSent: Monday, July 04, 2005 14:06To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Sort arrows in DataGrid Actually, the sortDirection thing was mentioned by Nigel Pegg (aka Component Guru) in the "Flash MX 2004 ActionScript - Training from the Source" book. I tried it in Flex a while back and it worked - so I never worried or even verified if it's documented or not. Sorry if this caused confusion. Dirk. Von: flexcoders@yahoogroups.com im Auftrag von Abdul QabizGesendet: Mo 04.07.2005 12:50An: flexcoders@yahoogroups.comBetreff: RE: [flexcoders] Sort arrows in DataGrid sortDirection was already discussed in flexcoders and I searchedarchives and pasted the same code :)I don't even look at docs, I read Dirk suggestions couple of days back.Agreed, it is not documented.Now I also search archives before answering, if I find an answer there Irefer the same...:)-abdul-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Manish JethaniSent: Monday, July 04, 2005 4:17 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Sort arrows in DataGridOn 7/4/05, Sean McKibben <[EMAIL PROTECTED]> wrote:> Maybe these things belong in the documentation? Maybe in the FAQ?Huh, what are those? :)Okay, I think he forgot to mention that some of the properties he wasrecommending are indeed "undocumented" (they are private to thoseclasses).> Note: a search for "sortArrow" at the site you provided yielded noresults> (then again if I knew there was a property called sortArrow, Iwouldn't have> needed to ask the question).It's there in the API docs. [1][1]:http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/DataGrid.html#sortArrowsortDirection is an internal variable the DataGrid uses to keep trackof which way to sort. It's not a part of the public API.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links<*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/<*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Sort arrows in DataGrid
Actually, the sortDirection thing was mentioned by Nigel Pegg (aka Component Guru) in the "Flash MX 2004 ActionScript - Training from the Source" book. I tried it in Flex a while back and it worked - so I never worried or even verified if it's documented or not. Sorry if this caused confusion. Dirk. Von: flexcoders@yahoogroups.com im Auftrag von Abdul Qabiz Gesendet: Mo 04.07.2005 12:50 An: flexcoders@yahoogroups.com Betreff: RE: [flexcoders] Sort arrows in DataGrid sortDirection was already discussed in flexcoders and I searched archives and pasted the same code :) I don't even look at docs, I read Dirk suggestions couple of days back. Agreed, it is not documented. Now I also search archives before answering, if I find an answer there I refer the same... :) -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Monday, July 04, 2005 4:17 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Sort arrows in DataGrid On 7/4/05, Sean McKibben <[EMAIL PROTECTED]> wrote: > Maybe these things belong in the documentation? Maybe in the FAQ? Huh, what are those? :) Okay, I think he forgot to mention that some of the properties he was recommending are indeed "undocumented" (they are private to those classes). > 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). It's there in the API docs. [1] [1]: http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/DataGrid.ht ml#sortArrow sortDirection is an internal variable the DataGrid uses to keep track of which way to sort. It's not a part of the public API. -- 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 Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ <>
RE: [flexcoders] Sort arrows in DataGrid
sortDirection was already discussed in flexcoders and I searched archives and pasted the same code :) I don't even look at docs, I read Dirk suggestions couple of days back. Agreed, it is not documented. Now I also search archives before answering, if I find an answer there I refer the same... :) -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Monday, July 04, 2005 4:17 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Sort arrows in DataGrid On 7/4/05, Sean McKibben <[EMAIL PROTECTED]> wrote: > Maybe these things belong in the documentation? Maybe in the FAQ? Huh, what are those? :) Okay, I think he forgot to mention that some of the properties he was recommending are indeed "undocumented" (they are private to those classes). > 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). It's there in the API docs. [1] [1]: http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/DataGrid.ht ml#sortArrow sortDirection is an internal variable the DataGrid uses to keep track of which way to sort. It's not a part of the public API. -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Sort arrows in DataGrid
On 7/4/05, Sean McKibben <[EMAIL PROTECTED]> wrote: > Maybe these things belong in the documentation? Maybe in the FAQ? Huh, what are those? :) Okay, I think he forgot to mention that some of the properties he was recommending are indeed "undocumented" (they are private to those classes). > 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). It's there in the API docs. [1] [1]: http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/DataGrid.html#sortArrow sortDirection is an internal variable the DataGrid uses to keep track of which way to sort. It's not a part of the public API. -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Sort arrows in DataGrid
Hi, > 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. Please check livedocs (http://livedocs.macromedia.com/flex/15/asdocs_en/). In DataGrid docs you will find the "sortArrow" property. I think, FlexBuilder's documentation also have Flex 1.5 ASDocs. Sorry, you are having trouble. But most of these things have been discussed in past, not sure why archives are not showing. But you can also search yahoo groups archives. We appreciate your feedback on our products and documentation. Please feel free to send your feedback/suggestions to us through: http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform Thanks -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sean McKibben Sent: Monday, July 04, 2005 12:35 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Sort arrows in DataGrid 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:[EMAIL PROTECTED] 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 sortOnHeaderReleas
Re: [flexcoders] Sort arrows in DataGrid
All these things have been discussed in past. Please search the archiveswith 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 ;)SeanOn 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) : VoidTo 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Sort arrows in DataGrid
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:[EMAIL PROTECTED] 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/