Yes
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Wednesday, August 20, 2008 11:40 AM To: [email protected] Subject: [flexcoders] Re: Force updateDisplayList You mean set selectedIndex on a DG to the saved one while loading a copy? --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > You should save off the selectedIndices and restore it > > > > ________________________________ > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of markgoldin_2000 > Sent: Wednesday, August 20, 2008 8:36 AM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Force updateDisplayList > > > > I am using updateDisplayList to highlight cells in DG. > Users can select some cells and these cells will have different > background color. In the underlying data I am setting up some flags > that repersent cell's state. Here is a fragment of my code: > override protected function updateDisplayList(unscaledWidth:Number, > unscaledHeight:Number):void > { > super.updateDisplayList(unscaledWidth, unscaledHeight); > var blockNum:int = listData.columnIndex + 1; > var grid1:DataGrid = DataGrid(DataGridListData(listData).owner); > ...... > if (grid1.isItemSelected(data) && data["plan" + blockNum] == 1) > { > //highlight > g.clear(); > g.beginFill(0xe1dc4d); > g.drawRect(0, 0, unscaledWidth, unscaledHeight + 1); > g.endFill(); > ...... > > After that users can save current screen. The whole XML is saved into > SQL. If users choose to load one of the saved screens I am executing: > ExternalInterface.call("window.location.reload(true)"); > which will load saved screen because the back-end will returned the > saved XML from database but no highlighted cells will be shown. > How can I inforce updateDisplayList or somewhat else to automatically > highlight cells with data that is set so? > > Thanks >

