2 Replies Latest reply on Feb 12, 2008 5:44 AM by Sreenivas R

    Type Coercion in DataGrid

    satishreddy536
      hello,
      am having a problem with date in datagrid
      whenver i entered the date in date field in data grid this error is coming
      TypeError: Error #1034: Type Coercion failed: cannot convert "12-12-2008" to Date.
      at mx.controls::DataGrid/itemEditorItemEditEndHandler()[E:\dev\flex_3_beta3\sdk\frameworks\p rojects\framework\src\mx\controls\DataGrid.as:4824]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framewor k\src\mx\core\UIComponent.as:9041]
      at mx.controls::DataGrid/endEdit()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src \mx\controls\DataGrid.as:4012]
      at mx.controls::DataGrid/deactivateHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\fra mework\src\mx\controls\DataGrid.as:4527]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framewor k\src\mx\core\UIComponent.as:9041]
      at mx.controls::DataGrid/endEdit()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src \mx\controls\DataGrid.as:4012]
      at mx.controls::DataGrid/editorKeyDownHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\ framework\src\mx\controls\DataGrid.as:4599]


      am using itemrenderer for date
      any help greatly apprecitable
      Thanks in advance