actionscript 3 - Flex AdvancedDataGrid: MXML ItemRenderers are not defaulting to the default style -
I know that the AdvancedDataGrid has a style function callback, but I do not want to change the style; I want to get the item renderer a global style that uses everything else (including the normal column).
My in-line item presenters use the default style, but I made them as separate MXML classes
thanks
< Div class = "post -text" itemprop = "text">
I do not think you can promote the style looks like the function is completely different for some but you can use any CSS property
var styleDecl: CSSStyleDeclaration = StyleManager.getStyleDeclaration ("YourTagOrClassName");
and after that:
styleDecl.getStyle (property);
If you want to get a style announcement directly from the Advanced Data Grid, you will need to get the list of renderers. Data:
& lt ;? Xml version = "1.0" encoding = "utf-8" & gt; & Lt; Mx: canvas xmlns: mx = "http://www.adobe.com/2006/mxml" tools = "mx.controls.list classes.IDROP InlistItem Renderer" & gt; & Lt; Mx: script & gt; Import mx.controls.dataGridClasses.DataGridListData; Import mx.controls.listClasses.BaseListData; [Bindabil ("Data Change")] Private var_listData: BaseListData; Get Public Events List (): Base Listada {Return_listData; } Public Function Set List Data (Value: Base List Data): Nil {_listData = value; } Override public function set data (value: object): zero {super.data = value; If (this.listData)) ((This .listData as DataGridListData). AdvancedDir as Grid) .getStyle (...); } & Lt; / Mx: script & gt; & Lt; / Mx: canvas & gt;
Comments
Post a Comment