Flex DataGrid 伪合并单元格思路及代码(flex scroll)新鲜出炉

随心笔谈1年前 (2023)发布 admin
95 0

xmlns:s=”library://ns.adobe.com/flex/spark”

xmlns:mx=”library://ns.adobe.com/flex/mx”

width=”100%” height=”100%”

autoDrawBackground=”false”

creationComplete=”mxitemrenderer1_creationCompleteHandler(event)”

>

import mx.collections.ArrayCollection;

import mx.controls.Text;

import mx.events.FlexEvent;

protected function mxitemrenderer1_creationCompleteHandler(event:FlexEvent):void

{

var txt1:String=lbl.text.split(“,”)[0];

var txt2:String=lbl.text.split(“,”)[1];

lbl1.text=txt1;

lbl2.text=txt2;

}

]]>

© 版权声明

相关文章