[flexcoders] Datagrid sort function
Wondering if any has built a custom sort function that can handle a mix of IP Addresses and names like so? Alpha Beta Zulu 0.0.0.0 192.168.168.1 192.168.168.11 192.168.168.23 192.168.168.231
RE: [flexcoders] DataGrid sort
I would set a breakpoint on your sortable function so you can see who is calling it again. It should not be called when you select a row. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of mhbmarcos Sent: Wednesday, May 20, 2009 9:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid sort Hi!!, i have a problem with dataGrid the dataGrid have into dataGridColumn a sortable function, so if sort this column, sort correct, but if then i have select any row, againt execute the sortableColumn. Please, solution for this? how to remove sortable function? thanks
[flexcoders] DataGrid sort
Hi!!, i have a problem with dataGrid the dataGrid have into dataGridColumn a sortable function, so if sort this column, sort correct, but if then i have select any row, againt execute the sortableColumn. Please, solution for this? how to remove sortable function? thanks
[flexcoders] Datagrid - Sort Error
I am getting the following error when attempting to run a sort on a datagrid's dataprovider (which is an XMLListCollection). It doesn't occur the first time I run the sort, however all subsequent runs result in an error: Error: Find criteria must contain at least one sort field value Here is the sort code: // sort on date var sortA:Sort = new Sort(); var sortByDate:SortField = new SortField(@date,false,false) sortA.fields=[sortByDate]; // Refresh the collection view to show the sort. modelLocator.projectData.projectData_xlc.sort = sortA; modelLocator.projectData.projectData_xlc.refresh(); Any ideas as to where the error might be? Thanks for any and all replies.
Re: [flexcoders] Datagrid - Sort Error
Try This. http://blog.flexexamples.com/2008/04/09/creating-a-custom-sort-on-a-datagrid-control-in-flex/ It will help you. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 7:53 PM, sleblang [EMAIL PROTECTED] wrote: I am getting the following error when attempting to run a sort on a datagrid's dataprovider (which is an XMLListCollection). It doesn't occur the first time I run the sort, however all subsequent runs result in an error: Error: Find criteria must contain at least one sort field value Here is the sort code: // sort on date var sortA:Sort = new Sort(); var sortByDate:SortField = new SortField(@date,false,false) sortA.fields=[sortByDate]; // Refresh the collection view to show the sort. modelLocator.projectData.projectData_xlc.sort = sortA; modelLocator.projectData.projectData_xlc.refresh(); Any ideas as to where the error might be? Thanks for any and all replies. -- Igor Costa www.igorcosta.com www.igorcosta.org
[flexcoders] Datagrid sort order: is there a natsort() such as in PHP?
Datagrid sort order: is there a natsort() such as in PHP? This is sort order on some strings: 1 10 11 2 21 23 This natsort order on the same strings: 1 2 10 11 21 23 In short, it deals sanely with a numeric string suffix. Anything like that in Flash/Flex out-of-the-box? -- John
[flexcoders] DataGrid Sort by Date problem -- Flex 2
Hi All, I'm having problem with DataGrid sort by date column. My date value in the XML file is as =Mon Apr 03 15:18:59 PDT 2006. Put the value on DataGrid like mx:DataGridColumn dataField=prechecked headerText=Prechecked sortCompareFunction=date_sortCompareFunc / I have a date compare function as private function date_sortCompareFunc(itemA:Object, itemB:Object):int { var dateA:Date = new Date(Date.parse(itemA.prechecked)); var dateB:Date = new Date(Date.parse(itemB.prechecked)); return ObjectUtil.dateCompare(dateA, dateB); } Sitll I'm not able to get the data sorted correct. What's wrong? Any help? Thanks
Re: [flexcoders] DataGrid Sort by Date problem -- Flex 2
On Monday 07 Jan 2008, vkc_nair wrote: Date(Date.parse(itemA.prechecked)); Date.parse() isn't as good as you think ? -- Tom Chiverton Helping to autoschediastically disintermediate leading-edge customers on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] DataGrid Sort Arrow
On Tuesday 13 Feb 2007, Dana Gutride wrote: row cell? Will I need to extend the datagrid class and rewrite the function that creates the sort arrow It's a property of the skin, I think, so you'll need to write an alternative class and reference that in the header styles. There is source code to all of this for a reason ;-) -- Tom Chiverton Helping to seamlessly implement user-centric segments This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
[flexcoders] DataGrid Sort Arrow
Hi: I've spent a good deal (too much) time trying to change the data grid sort arrow location. My header row is all custom renderers with text that is rotated 90 degrees. Because of that, the sort arrow ends up in a horrible location. Any ideas on how to move it to the bottom/center of the header row cell? Will I need to extend the datagrid class and rewrite the function that creates the sort arrow or can I is there a simpler way to do this? Thanks, Dana
[flexcoders] DataGrid sort direction arrow
Is there any way to force the sort direction arrows on a DataGridColumn to be displayed? What I need to do is save the direction a column has been sorted and then when the user reloads the app I have to set the grid up just like they last left it. I can easily enough sort the data correctly on the column that I need to, but I would like to also show the visual indicator so that the user knows the data is in fact sorted on the column they last sorted on. I had accomplished this previously in Flash (it was kinda nasty - a had a small bug), but I was wondering if anyone had attempted this in Flex. Any pointers would be appreciated. Bob Chyko Software Application Developer
RE: [flexcoders] DataGrid Sort Direction
You shouldnt need the direction, you should always return as if it is ascending. The Sort class will take care of flipping the results for you. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha Sent: Friday, March 24, 2006 2:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid Sort Direction Hi, How can I read sort direction (ASC/DESC) when user clicks on Grid column to sort? Thanks Agha Mehdi IDT - eBusiness Program Manager Work: 408.284.8239 Cell : 209.275.0482 Fax : 408.284.2766 -- 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] DataGrid Sort Direction
Hi,Try this code :mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml backgroundColor=#FF mx:Script ![CDATA[ function showArrow(){ myGrid.sortItemsBy(name,asc); myGrid.sortIndex = 1; myGrid.sortDirection = ASC; myGrid.placeSortArrow(); } function showArrow1(){ myGrid.sortItemsBy(Value,asc); myGrid.sortIndex = 1; myGrid.sortDirection = ASC; myGrid.placeSortArrow(); } ]] /mx:Script mx:Panel title=DataGrid Panel marginTop=10 mx:VBox initialize=showArrow();showArrow1() mx:DataGrid id=myGrid showDataTips=true width=350 height=150 mx:dataProvider mx:Array id=arr mx:Object name= a Value=Test_1 / mx:Object name= b Value=Test_2 / mx:Object name= a Value=Test_3 / mx:Object name= a Value=Test_4 / mx:Object name= b Value=Test_5 / /mx:Array /mx:dataProvider /mx:DataGrid /mx:VBox /mx:Panel/mx:ApplicationThanks-RajniOn Sat, Mar 25, 2006 at 3:50 AM, Mehdi, Agha wrote:Hi, How can I read sort direction (ASC/DESC) when user click s on Grid column to sort ? Thanks Agha Mehdi IDT - eBusiness Program Manager Work: 408.284.8239 Cell : 209.275.0482 Fax : 408.284.2766 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com___YAHOO! GROUPS LINKS • Visit your group flexcoders http://groups.yahoo.com/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 http://docs.yahoo.com/info/terms/ . ___-- Sent using Laszlo Mail. Try it yourself.http://www.laszlomail.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.
[flexcoders] DataGrid Sort Direction
Hi, How can I read sort direction (ASC/DESC) when user clicks on Grid column to sort? Thanks Agha Mehdi IDT - eBusiness Program Manager Work: 408.284.8239 Cell : 209.275.0482 Fax : 408.284.2766 -- 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] Datagrid sort Arrows
Hmmm, Im calling it in the return of the service that populates my datagrid and Im getting nothing. What specifically do you mean sort was assigned? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Monday, February 13, 2006 10:43 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Datagrid sort Arrows Call placeSortArrow() on the DG and assuming the Sort was assigned to the Collection it will do its best to place it. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda Sent: Monday, February 13, 2006 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid sort Arrows Anyway to start a DataGrid with these showing on initial load? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Datagrid sort Arrows
What Matt means is that there needs to be a Sort object that is assigned to the collections sort property. You dont need to actually trigger the sort (by calling refresh() on the collection) but there needs to be a Sort assigned. For example: localCol = new ArrayCollection(people); var s:Sort = new Sort(); s.fields = [new SortField(name)]; localCol.sort = s; dg.dataProvider=localCol; dg.placeSortArrow(); localCol has a Sort object assigned to it but not triggered. The DataGrid will show the collection unsorted and with the sort arrow in the column header. If you want the Sort to be applied, all you have to do is call localCol.refresh() before assigning it to the DataGrid. HTH deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Tuesday, February 14, 2006 7:19 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Datagrid sort Arrows Hmmm, Im calling it in the return of the service that populates my datagrid and Im getting nothing. What specifically do you mean sort was assigned? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Monday, February 13, 2006 10:43 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Datagrid sort Arrows Call placeSortArrow() on the DG and assuming the Sort was assigned to the Collection it will do its best to place it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Monday, February 13, 2006 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid sort Arrows Anyway to start a DataGrid with these showing on initial load? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Datagrid sort Arrows
Anyway to start a DataGrid with these showing on initial load? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Datagrid sort Arrows
Call placeSortArrow() on the DG and assuming the Sort was assigned to the Collection it will do its best to place it. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda Sent: Monday, February 13, 2006 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid sort Arrows Anyway to start a DataGrid with these showing on initial load? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Datagrid sort on float numbers problem
Hmm, if were screwing that up you may want to use your own comparator function. See sortCompareFunction on DataGridColumn. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alban Soupper Sent: Friday, October 07, 2005 5:45 AM To: Flexcoders (E-mail) Subject: [flexcoders] Datagrid sort on float numbers problem Hi all, I have the following service: mx:HTTPService id=search method=get url=""> showBusyCursor=true/ and this datagrid mx:DataGrid dataProvider={search.result.results.fund} width=100% mx:columns mx:Array mx:DataGridColumn headerText=Fund columnName=name/ mx:DataGridColumn headerText=Perf columnName=lastReturn/ /mx:Array /mx:columns /mx:DataGrid the httpService return the following xml in its response: ?xml version=1.0 encoding=UTF-8? results fund name![CDATA[Fund 2]]/name lastReturn-0.03345107356650445/lastReturn /fund fund name![CDATA[Fund 8]]/name lastReturn-7.429962234167808E-4/lastReturn /fund fund name![CDATA[Fund 9]]/name lastReturn0.03247207098433136/lastReturn /fund fund name![CDATA[Fund 11]]/name lastReturn7.550032224670211E-4/lastReturn /fund /results but when I sort the Perf column I obtain this: 0.03247... 0.00075... -0.03345... -0.00074... instead of 0.03247... 0.00075... -0.00074... -0.03345... It seams that the DataGrid sort mechanism on my service result interprets correctly the perf correctly as Numbers (7.550032224670211E-4 is transformed in -0.00074...) but sort the values as string. Question: What's happening? How to solve this situation? *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** -- 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] Datagrid sort on float numbers problem
Hi all, I have the following service: mx:HTTPService id=search method=get url=/search.do showBusyCursor=true/ and this datagrid mx:DataGrid dataProvider={search.result.results.fund} width=100% mx:columns mx:Array mx:DataGridColumn headerText=Fund columnName=name/ mx:DataGridColumn headerText=Perf columnName=lastReturn/ /mx:Array /mx:columns /mx:DataGrid the httpService return the following xml in its response: ?xml version=1.0 encoding=UTF-8? results fund name![CDATA[Fund 2]]/name lastReturn-0.03345107356650445/lastReturn /fund fund name![CDATA[Fund 8]]/name lastReturn-7.429962234167808E-4/lastReturn /fund fund name![CDATA[Fund 9]]/name lastReturn0.03247207098433136/lastReturn /fund fund name![CDATA[Fund 11]]/name lastReturn7.550032224670211E-4/lastReturn /fund /results but when I sort the Perf column I obtain this: 0.03247... 0.00075... -0.03345... -0.00074... instead of 0.03247... 0.00075... -0.00074... -0.03345... It seams that the DataGrid sort mechanism on my service result interprets correctly the perf correctly as Numbers (7.550032224670211E-4 is transformed in -0.00074...) but sort the values as string. Question: What's happening? How to solve this situation? *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- 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/