flex 合并单元格

阅读更多
flex中对于合并单元格没有很好的解决方案,有的可能会用OLAPDataGrid来实现,不过感觉效果还不是很好,下面有个例子:



    
      
    

    
         
        
            
            
                
            
        
        
        
            
            
                
            
        
    
        
            
            
                
             
        
        
        
    
    
    

        
    


不过后来在网上看到MecGrid感觉还不错,所以拿上来与大家分享.
首先得把它的swc加进来,加到flex build path里面.
下面就是例子:



FilterRenderer
{
    fontSize: 8;
    verticalScrollBarStyleName: filterRendererScrollStyle;
}

.filterRendererScrollStyle {
    downArrowUpSkin: Embed(source="/assets/downArrow.png");
    downArrowOverSkin: Embed(source="/assets/downArrow.png");
    downArrowDownSkin: Embed(source="/assets/downArrow.png");
    upArrowUpSkin: Embed(source="/assets/upArrow.png");
    upArrowOverSkin: Embed(source="/assets/upArrow.png");
    upArrowDownSkin: Embed(source="/assets/upArrow.png");
    thumbDownSkin: Embed(source="/assets/thumb.png",
        scaleGridLeft="7", scaleGridTop="5", scaleGridRight="8", scaleGridBottom="7");
    thumbUpSkin: Embed(source="/assets/thumb.png",
        scaleGridLeft="7", scaleGridTop="5", scaleGridRight="8", scaleGridBottom="7");
    thumbOverSkin: Embed(source="/assets/thumb.png",
        scaleGridLeft="7", scaleGridTop="5", scaleGridRight="8", scaleGridBottom="7");
    trackSkin: Embed(source="/assets/scrolltrack.png",
        scaleGridLeft="7", scaleGridTop="4", scaleGridRight="8", scaleGridBottom="6" );    
}