14 April 2011

Using DateField as an editor with DataGrid in Flex when Date is a string

Flex docs talks about using a Datefield as an Editor with DataGrid but what if date is in a string format. Most likely that is practical scenario in most of the cases because when you put some XML or server side data in DataGrid it generally comes as string. Let's have a look at below small code which will allow you to perform this.

Main Application


    
        
    

        
            
                                                          
                
            
        



Now, let's create the MXML file which will be used as itemEditor in DataGridColumn. We will place this MXML file in the same folder as application file.

DateEditor.mxml

    
       
    

0 comments:

Post a Comment