Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-17-2012, 07:45 PM   #1
davej
Senior Member
 
Join Date: Dec 2005
Posts: 263
Default State change wipes out grid check boxes

I have two states one has a datagrid with a custom itemrenderer of a check box. The second state has other things not really important. If I select items in my grid and check the check box then go to the second state and then come back to my first state it wipes out all the checkbox selected items. Each state has a custom component that extends s:group base class. No idea why its doing this or how to prevent this. Hope this makes sense and someone can help
davej is offline   Reply With Quote
Old 04-23-2012, 12:29 PM   #2
Yui
Senior Member
 
Join Date: Jun 2008
Location: Romania
Posts: 162
Default

you would need to save the information whether the checkbox is selected or not in the dataProvider. Like an extra property for the object you use, to let you know if it's selected or not (you would save this when the user checks/unchecks the checkbox, and use this information in the itemRenderer)
Yui is offline   Reply With Quote
Old 05-01-2012, 04:26 PM   #3
davej
Senior Member
 
Join Date: Dec 2005
Posts: 263
Default

thanx I figured it out. I was not correctly binding the dataprovider with the grid.
davej is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:03 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.