[flexcoders] datagrid refresh
When I use CF9 as the datasource; I'm missing the option to refresh the dataProvider. Eg. getAllRecords_paged.lastResult.Refresh() is missing. Does anyone know how I can refresh the datagrid? Thanks. sj
RE: [flexcoders] datagrid refresh
Nevermind; it's been moved. However, code hinting doesn't bring it up either. It's now: dataGrid.dataprovider.refresh(); addItem() appears to take as well so I assume it's there too. Neither show in code hinting. sj From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Scott Sent: Thursday, June 17, 2010 2:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] datagrid refresh When I use CF9 as the datasource; I'm missing the option to refresh the dataProvider. Eg. getAllRecords_paged.lastResult.Refresh() is missing. Does anyone know how I can refresh the datagrid? Thanks. sj -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/ , and is believed to be clean.
RE: [flexcoders] DataGrid Refresh
Tracy, Thanks the setItemAt works nicely. The refresh is available but I was looking in the wrong spot. It does however cause the grid to reposition, so its probably doing a full redraw. Regards Dale Fraser From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, 16 January 2008 11:04 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DataGrid Refresh Dale, use the ArrayCollection API to update the item (probably setItemAt()). Simply assigning a value to selectedItem doesn't displatch the events necessary to make the DG UI update. refresh() *is* a method on the AC. Calling that should also work (but it may cause a full redraw, I don't recall.) Why do you say it is not available? It is listed in the docs. Tracy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dale Fraser Sent: Tuesday, January 15, 2008 5:43 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DataGrid Refresh validateNow does not work refresh does not seem to be available on my dataProvider which is a variable array collection. If I redo the binding gridName.dataProvider = variableName; This works, but it redisplays the whole grid and looses your position within the data. Regards Dale Fraser http://learncf.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Max Frigge Sent: Tuesday, 15 January 2008 6:24 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid Refresh Hey I am not quite sure about this, but it should be either: yourDataProvider.refresh(); or you could try dataGrid.validateNow(); HTH (and I am not telling any crap ;) - Original Message From: Dale Fraser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, January 15, 2008 4:16:07 PM Subject: [flexcoders] DataGrid Refresh I have a datagrid and am programmatically updating some entries in the selected row. I have tried both selectedItem. columnName = blah and changing the bound dataProvider. Both work, but the grid does not refresh. If I do a column sort it refreshes and I see the changed data. Regards Dale Fraser http://learncf. com _ Looking for last minute shopping deals? Find http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearch/ca tegory.php?category=shopping them fast with Yahoo! Search.
RE: [flexcoders] DataGrid Refresh
validateNow does not work refresh does not seem to be available on my dataProvider which is a variable array collection. If I redo the binding gridName.dataProvider = variableName; This works, but it redisplays the whole grid and looses your position within the data. Regards Dale Fraser http://learncf.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Max Frigge Sent: Tuesday, 15 January 2008 6:24 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid Refresh Hey I am not quite sure about this, but it should be either: yourDataProvider.refresh(); or you could try dataGrid.validateNow(); HTH (and I am not telling any crap ;) - Original Message From: Dale Fraser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, January 15, 2008 4:16:07 PM Subject: [flexcoders] DataGrid Refresh I have a datagrid and am programmatically updating some entries in the selected row. I have tried both selectedItem. columnName = blah and changing the bound dataProvider. Both work, but the grid does not refresh. If I do a column sort it refreshes and I see the changed data. Regards Dale Fraser http://learncf. com _ Looking for last minute shopping deals? Find http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearch/ca tegory.php?category=shopping them fast with Yahoo! Search.
Re: [flexcoders] DataGrid Refresh
The best way you could dispatch CollectionEvent.CHANGE event. It will refresh DG definitely. grid.dataProvider.dispatchEvent(new CollectionEvent(CollectionEvent.CHANGE)); Dale Fraser wrote: validateNow does not work refresh does not seem to be available on my dataProvider which is a variable array collection. If I redo the binding gridName.dataProvider = variableName; This works, but it redisplays the whole grid and looses your position within the data. Regards Dale Fraser http://learncf.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Max Frigge Sent: Tuesday, 15 January 2008 6:24 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid Refresh Hey I am not quite sure about this, but it should be either: yourDataProvider.refresh(); or you could try dataGrid.validateNow(); HTH (and I am not telling any crap ;) - Original Message From: Dale Fraser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, January 15, 2008 4:16:07 PM Subject: [flexcoders] DataGrid Refresh I have a datagrid and am programmatically updating some entries in the selected row. I have tried both selectedItem. columnName = blah and changing the bound dataProvider. Both work, but the grid does not refresh. If I do a column sort it refreshes and I see the changed data. Regards Dale Fraser http://learncf. com
RE: [flexcoders] DataGrid Refresh
George, You are the man, that works, except for one error which I fixed Should be entriesGrid.dataProvider.dispatchEvent(new CollectionEvent(CollectionEvent.COLLECTION_CHANGE)); not entriesGrid.dataProvider.dispatchEvent(new CollectionEvent(CollectionEvent.CHANGE)); Regards Dale Fraser http://learncf.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of George Sent: Wednesday, 16 January 2008 9:55 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid Refresh The best way you could dispatch CollectionEvent.CHANGE event. It will refresh DG definitely. grid.dataProvider.dispatchEvent(new CollectionEvent(CollectionEvent.CHANGE)); Dale Fraser wrote: validateNow does not work refresh does not seem to be available on my dataProvider which is a variable array collection. If I redo the binding gridName.dataProvider = variableName; This works, but it redisplays the whole grid and looses your position within the data. Regards Dale Fraser http://learncf.com From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Max Frigge Sent: Tuesday, 15 January 2008 6:24 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] DataGrid Refresh Hey I am not quite sure about this, but it should be either: yourDataProvider.refresh(); or you could try dataGrid.validateNow(); HTH (and I am not telling any crap ;) - Original Message From: Dale Fraser [EMAIL PROTECTED] mailto:dale%40fraser.id.au To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Tuesday, January 15, 2008 4:16:07 PM Subject: [flexcoders] DataGrid Refresh I have a datagrid and am programmatically updating some entries in the selected row. I have tried both selectedItem. columnName = blah and changing the bound dataProvider. Both work, but the grid does not refresh. If I do a column sort it refreshes and I see the changed data. Regards Dale Fraser http://learncf. com
Re: [flexcoders] DataGrid Refresh
Yeah, I typed directly in Thunderbird so there's no hints like Flex Builder. ;) Doesn't matter. Good luck! George Dale Fraser wrote: George, You are the man, that works, except for one error which I fixed Should be entriesGrid.dataProvider.dispatchEvent(new CollectionEvent(CollectionEvent.COLLECTION_CHANGE)); not entriesGrid.dataProvider.dispatchEvent(new CollectionEvent(CollectionEvent.CHANGE)); Regards Dale Fraser http://learncf.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of George Sent: Wednesday, 16 January 2008 9:55 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid Refresh The best way you could dispatch CollectionEvent.CHANGE event. It will refresh DG definitely. grid.dataProvider.dispatchEvent(new CollectionEvent(CollectionEvent.CHANGE)); Dale Fraser wrote: validateNow does not work refresh does not seem to be available on my dataProvider which is a variable array collection. If I redo the binding gridName.dataProvider = variableName; This works, but it redisplays the whole grid and looses your position within the data. Regards Dale Fraser http://learncf.com From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Max Frigge Sent: Tuesday, 15 January 2008 6:24 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] DataGrid Refresh Hey I am not quite sure about this, but it should be either: yourDataProvider.refresh(); or you could try dataGrid.validateNow(); HTH (and I am not telling any crap ;) - Original Message From: Dale Fraser [EMAIL PROTECTED] mailto:dale%40fraser.id.au To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Tuesday, January 15, 2008 4:16:07 PM Subject: [flexcoders] DataGrid Refresh I have a datagrid and am programmatically updating some entries in the selected row. I have tried both selectedItem. columnName = blah and changing the bound dataProvider. Both work, but the grid does not refresh. If I do a column sort it refreshes and I see the changed data. Regards Dale Fraser http://learncf. com
RE: [flexcoders] DataGrid Refresh
Dale, use the ArrayCollection API to update the item (probably setItemAt()). Simply assigning a value to selectedItem doesn't displatch the events necessary to make the DG UI update. refresh() *is* a method on the AC. Calling that should also work (but it may cause a full redraw, I don't recall.) Why do you say it is not available? It is listed in the docs. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dale Fraser Sent: Tuesday, January 15, 2008 5:43 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DataGrid Refresh validateNow does not work refresh does not seem to be available on my dataProvider which is a variable array collection. If I redo the binding gridName.dataProvider = variableName; This works, but it redisplays the whole grid and looses your position within the data. Regards Dale Fraser http://learncf.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Max Frigge Sent: Tuesday, 15 January 2008 6:24 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid Refresh Hey I am not quite sure about this, but it should be either: yourDataProvider.refresh(); or you could try dataGrid.validateNow(); HTH (and I am not telling any crap ;) - Original Message From: Dale Fraser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, January 15, 2008 4:16:07 PM Subject: [flexcoders] DataGrid Refresh I have a datagrid and am programmatically updating some entries in the selected row. I have tried both selectedItem. columnName = blah and changing the bound dataProvider. Both work, but the grid does not refresh. If I do a column sort it refreshes and I see the changed data. Regards Dale Fraser http://learncf. com Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearc h/category.php?category=shopping
[flexcoders] DataGrid Refresh
I have a datagrid and am programmatically updating some entries in the selected row. I have tried both selectedItem.columnName = blah and changing the bound dataProvider. Both work, but the grid does not refresh. If I do a column sort it refreshes and I see the changed data. Regards Dale Fraser http://learncf.com
Re: [flexcoders] DataGrid Refresh
Hey I am not quite sure about this, but it should be either: yourDataProvider.refresh(); or you could try dataGrid.validateNow(); HTH (and I am not telling any crap ;) - Original Message From: Dale Fraser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, January 15, 2008 4:16:07 PM Subject: [flexcoders] DataGrid Refresh I have a datagrid and am programmatically updating some entries in the selected row. I have tried both selectedItem. columnName = “blah” and changing the bound dataProvider. Both work, but the grid does not refresh. If I do a column sort it refreshes and I see the changed data. Regards Dale Fraser http://learncf. com !-- #ygrp-mkp{ border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;} #ygrp-mkp #ads{ margin-bottom:10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#ff;text-decoration:none;} -- !-- #ygrp-sponsor #ygrp-lc{ font-family:Arial;} #ygrp-sponsor #ygrp-lc #hd{ margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;} #ygrp-sponsor #ygrp-lc .ad{ margin-bottom:10px;padding:0 0;} -- !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a{ text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc{ background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o{font-size:0;} .MsoNormal{ margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq{margin:4;} -- Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[flexcoders] DataGrid refresh problem
Let me explain the situation: I have a main mxml, on load it instances a Localconnection to permit others swf's establish a connection with it and receive data. I load one SWF (child) on main.mxml, it instances two Localconnection, one to connect to the main mxml and another to allow receiving data from main. The child has a DataGrid with a dataProvider. When child loads, ask to parent one parameter via Localconnection, then creates an HTTPService to request data to a PHP script, when it receive the data renews the dataProvider content to refresh the DataGrid. Well, this works perfectly the first time, but subsequent times the DataGrid doesn't is refreshed, i've chequed the dataProvider has the new data provided by the PHP script. Is there any other way to refresh the DataGrid to show the new data that dataProvider has? Thanks in advance -- 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] DataGrid refresh problem
Everything should work fine. Can you sendthe code to look at? - Original Message From: ddanone2 [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Monday, July 31, 2006 5:45:40 PMSubject: [flexcoders] DataGrid refresh problem Let me explain the situation:I have a main mxml, on load it instances a Localconnection to permitothers swf's establish a connection with it and receive data.I load one SWF (child) on main.mxml, it instances two Localconnection,one to connect to the main mxml and another to allow receiving datafrom main.The child has a DataGrid with a dataProvider.When child loads, ask to parent one parameter via Localconnection,then creates an HTTPService to request data to a PHP script, when itreceive the data renews the dataProvider content to refresh the DataGrid.Well, this works perfectly the first time, but subsequent times theDataGrid doesn't is refreshed, i've chequed the dataProvider has thenew data provided by the PHP script.Is there any other way to refresh the DataGrid to show the new datathat dataProvider has?Thanks in advance __._,_.___ -- 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. __,_._,___