Hi all coders
I have a problem with a checkboxrenderer in a datagrid.
Situation:
One datagrid with a xx number of columns, where the last two colums are checkboxrenderers "changed" and "delete";
When a cell in the grid is edited the checkbox "changed" for that row is set to true. So far so good.
Unfortunelly the checkbox isn't redrawed at once so we force that in with a dataProvider = dataProvider
See code:
private function edited(event:Object):Void {
var record:Object = datagrid.dataProvider[event.itemIndex];
<snip>...
var obj:Object = datagrid.focusedCell ;
if(oldValue != newValue) {
if(datagrid.dataProvider[event.itemIndex].changed == false ){
Setting CB to true -->> datagrid.dataProvider[event.itemIndex].changed = true;
Force redraw -->> datagrid.dataProvider = datagrid.dataProvider;
}
}
datagrid.focusedCell = obj;
At this point the focusedcell looses focus, i tried to set in back by using the propertie "focusedCell" but thats not working. No cells in the grid has focus but the datagrid frame itself has.
We also tried by set selection.getFocused and selection.setFocus. This also failed
Any hint or help more than welcome.
Regards
Tommy
Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt als gevolg van een onnauwkeurigheid of fout in deze e-mail.
English Translation: This e-mail and all attached files are official documents of Antwerp Port Authority and may contain confidential or personal information. If you have received this e-mail in error, you are asked to inform the sender by e-mail or telephone immediately, and to remove it from your system without reading or reproducing it or passing it on to other parties. Antwerp Port Authority is in no way responsible for any errors or inaccuracies in the contents of this e-mail, nor can it be held liable for any direct or indirect loss, damage or inconvenience arising from any such errors or inaccuracies. [GHA#Disclaimer]
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___

