2 Replies Latest reply on Aug 5, 2010 4:04 PM by wise_qwerty

    DateField As ItemRenderer

    epi3rc3

      Im having a problem when i try ot use a datefield as a itemRenderer in a dataGrid. When i click in the datagrid it lets me select and date and works as expect but when i click outside the dataGrid and then click back inside dataGrid it gives me a error saying "cannot convert 11/02/09 to Date." any ideas how i could fix this?

       

      heres some code:

       

                           <mx:DataGrid width="173" height="51" textAlign="center" borderColor="#000000" dataProvider="{iddArray}" sortableColumns="false" editable="true"  verticalScrollPolicy="off" rowHeight="24" x="0" y="10" color="#000000">
                               <mx:columns>
                                   <mx:DataGridColumn headerText="ID" dataField="idd" editorUsesEnterKey="true">
                                      
                                       <mx:itemEditor>
                                           <mx:Component>
                                               <mx:DateField editable="true">
                                                   <mx:dataProvider>
                                                       <mx:Date id="iddBox">
                                                          
                                                       </mx:Date>
                                                   </mx:dataProvider>
                                               </mx:DateField>
                                           </mx:Component>
                                       </mx:itemEditor>   
                                   </mx:DataGridColumn>
                                  
                               </mx:columns>
                           </mx:DataGrid>