3 Replies Latest reply on Oct 10, 2012 10:11 PM by megharajdeepak

    Error convert Datagrid in to Datagrid

    WixardCallMe

      TypeError: Error #1034: Type Coercion failed: cannot convert mx.controls::DataGrid@325360a1 in mx.controls.DataGrid.

      at mx.controls.dataGridClasses::DataGridItemRenderer/validateProperties()[C:\autobuild\3.3.0 \frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridItemRenderer.as:398 ]

      at mx.managers::LayoutManager/validateClient()[C:\autobuild\3.3.0\frameworks\projects\framew ork\src\mx\managers\LayoutManager.as:811]

      at mx.controls::DataGrid/http://www.adobe.com/2006/flex/mx/internal::calculateHeaderHeight()[C:\autobuild\3.3.0\fra meworks\projects\framework\src\mx\controls\DataGrid.as:1848]

      at mx.controls.dataGridClasses::DataGridHeader/measure()[C:\autobuild\3.3.0\frameworks\proje cts\framework\src\mx\controls\dataGridClasses\DataGridHeader.as:140]

      at mx.core::UIComponent/measureSizes()[C:\autobuild\3.3.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:5956]

      at mx.core::UIComponent/validateSize()[C:\autobuild\3.3.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:5902]

      at mx.managers::LayoutManager/validateClient()[C:\autobuild\3.3.0\frameworks\projects\framew ork\src\mx\managers\LayoutManager.as:837]

      at mx.managers::PopUpManagerImpl/addPopUp()[C:\autobuild\3.3.0\frameworks\projects\framework \src\mx\managers\PopUpManagerImpl.as:347]

      at mx.managers::PopUpManagerImpl/createPopUp()[C:\autobuild\3.3.0\frameworks\projects\framew ork\src\mx\managers\PopUpManagerImpl.as:199]

      at mx.managers::PopUpManager$/createPopUp()[C:\autobuild\3.3.0\frameworks\projects\framework \src\mx\managers\PopUpManager.as:124]

      at com.nuxiba.Administrator.engine::SPopUpController$/createPopUp()[/Volumes/Nuxiba Development/Development/Actionscript3RIA/src/com/nuxiba/Administrator/engine/SPopUpContro ller.as:28]

      at CallCenterResourcesDetails::MCCResources/onResult()[/Volumes/Nuxiba Development/Development/FlexAdminProject/src/CallCenterResourcesDetails/MCCResources.mxml :127]

      at flash.events::EventDispatcher/dispatchEventFunction()

      at flash.events::EventDispatcher/dispatchEvent()

      at com.nuxiba.Administrator.engine.httpServices::ASPAdminEngine/onResult()[/Volumes/Nuxiba Development/Development/Actionscript3RIA/src/com/nuxiba/Administrator/engine/httpServices /ASPAdminEngine.as:77]

      at flash.events::EventDispatcher/dispatchEventFunction()

      at flash.events::EventDispatcher/dispatchEvent()

      at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.3.0\framewor ks\projects\rpc\src\mx\rpc\AbstractInvoker.as:171]

      at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\autobuild\3.3.0\frameworks\ projects\rpc\src\mx\rpc\AbstractInvoker.as:213]

      at mx.rpc::Responder/result()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\rpc\Responde r.as:43]

      at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\rpc\ AsyncRequest.as:74]

      at DirectHTTPMessageResponder/completeHandler()[C:\autobuild\3.3.0\frameworks\projects\rpc\s rc\mx\messaging\channels\DirectHTTPChannel.as:409]

      at flash.events::EventDispatcher/dispatchEventFunction()

      at flash.events::EventDispatcher/dispatchEvent()

      at flash.net::URLLoader/onComplete()

       

      in debugger mode point to the class DataGridItemRenderer

       

      public function validateProperties():void

      {

      invalidatePropertiesFlag = false;

      if (_listData)

      {

      var dg:DataGrid = DataGrid(_listData.owner);

       

      var column:DataGridColumn =

      dg.columns[_listData.columnIndex];