how many rows? If you have a lot - there you go. Lots of lookups and
styling. The v2 dataGrid doesn't do paging - but I think there are
some out there that do. Google for em.

ed

On 11/9/05, Robin Burrer <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> Whenever I try to format the text in a v2 datagrid component the performance
> of my flash application dramatically goes down.
>
> The flash application freezes for one to two seconds (depending
> On the processor speed) before the data grid is displayed.
>
> If I don't call the "formatDataGrid" method (see below) my applications runs
> smoothly.
>
> Any ideas?
>
> Cheers
>
> Robin
>
>
>         // formatDataGrid
>         private function formatDataGrid():Void
>         {
>                 myGrid.rowHeight = 30;
>
>                 // first column
>                 var locationColum = myGrid.getColumnAt(0);
>                 locationColum.setStyle("fontWeight", "bold");
>                 locationColum.setStyle("color", "0x00538D");
>                 locationColum.setStyle("fontSize", "15");
>                 locationColum.setStyle("fontStyle", "italic");
>                 locationColum.width = 145;
>                 locationColum.embedFonts = true;
>                 locationColum.fontFamily  ="myFont"
>
>                 // second column
>                 var datesColum= myGrid.getColumnAt(1);
>                 datesColum.setStyle("color", "0x00538D");
>                 datesColum.width = 260;
>                 datesColum.embedFonts = true;
>                 datesColum.fontFamily  ="myFont";
>
>                 // third column
>                 var registerColum = myGrid.getColumnAt(2);
>                 registerColum.setStyle("color", "0x00538D");
>                 registerColum.setStyle("fontStyle", "italic");
>                 registerColum.setStyle("fontWeight", "bold");
>                 registerColum.embedFonts = true;
>                 registerColum.fontFamily  ="myFont";
>
>
>         }
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to