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

Reply via email to