View Full Version : State change wipes out grid check boxes
04-17-2012, 07:45 PM
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
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)
05-01-2012, 04:26 PM
thanx I figured it out. I was not correctly binding the dataprovider with the grid.
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.