Flex DataGrid pseudo-merged cell implementation ideas
<?xml version="1.0" encoding="utf-8"?> <s:MXDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 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)" > <s:layout> <s:VerticalLayout verticalAlign="middle" horizontalAlign="center"/> </s:layout> <fx:Script> <![CDATA[ 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; } ]]> </fx:Script> <fx:Declarations> <!-- 将非可视元素(例如服务、值对象)放在此处 --> </fx:Declarations> <s:Label id="lbl" text="{dataGridListData.label}" visible="false" height="0"/> <s:VGroup id="vp" width="100%" height="100%" gap="2" > <s:Label id="lbl1" color="0x000000" textAlign="center" verticalAlign="middle" width="100%"/> <mx:HRule width="100%" chromeColor="0x999999" alpha="0.3"/> <s:Label id="lbl2" color="0x000000" textAlign="center" verticalAlign="middle" width="100%"/> </s:VGroup> </s:MXDataGridItemRenderer>
Copy after login
For more articles on Flex DataGrid pseudo-merged cell implementation ideas, please pay attention to the PHP Chinese website!
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article
Assassin's Creed Shadows: Seashell Riddle Solution
3 weeks ago
By DDD
What's New in Windows 11 KB5054979 & How to Fix Update Issues
2 weeks ago
By DDD
Where to find the Crane Control Keycard in Atomfall
3 weeks ago
By DDD
Roblox: Dead Rails - How To Complete Every Challenge
4 weeks ago
By DDD
Atomfall guide: item locations, quest guides, and tips
4 weeks ago
By DDD

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics
CakePHP Tutorial
1393
52


nyt mini crossword answers
37
110

