Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1AFE10FBB for ; Sun, 26 Jan 2014 21:51:41 +0000 (UTC) Received: (qmail 14298 invoked by uid 500); 26 Jan 2014 21:51:41 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 14242 invoked by uid 500); 26 Jan 2014 21:51:40 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 14234 invoked by uid 99); 26 Jan 2014 21:51:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jan 2014 21:51:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of olegkon@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qc0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jan 2014 21:51:36 +0000 Received: by mail-qc0-f173.google.com with SMTP id i8so6866394qcq.4 for ; Sun, 26 Jan 2014 13:51:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=UpccvLmHUy72rQfrHR235tauGz++pvxLkZggTDXU+/8=; b=vJgRaa9kyJwjDs1RKf5mZEnhnAEQ8zTp1bQGcOIUDW02jZW5AndmDM/OlFlZpmbynZ O3k4vIVPO1Ml7wyZJOfVFTdMgqhAqbv+3yNp5puobnvH5ualHBMBLPbuAhwc3nisI9Eg WzQSHQUjECg0AUyRBaWqF8vqsvn/zpSJlqGTDkdMgTvDJcIOkT28AL4JkEs0uP+IAFhn tZVlMyeTo6Ds/RI8MqScjW/6O1Y/LU7wK3+2TNWsCqkkgNZNWnfjRyR4uDpTNbe6z9kk Uuf+TpvdC8iX9jyRB+rxCSzYWKVzcEkhNXo+IBflJlIyeffob6Ou36VqyWahlQh/ClU8 4UMw== MIME-Version: 1.0 X-Received: by 10.140.31.75 with SMTP id e69mr36176294qge.76.1390773075456; Sun, 26 Jan 2014 13:51:15 -0800 (PST) Received: by 10.96.64.163 with HTTP; Sun, 26 Jan 2014 13:51:15 -0800 (PST) Date: Sun, 26 Jan 2014 16:51:15 -0500 Message-ID: Subject: MX DataGrid not compatible with Spark Skin? From: Oleg Konovalov To: flex-dev@apache.org Content-Type: multipart/alternative; boundary=001a113a96ca2053dc04f0e697f2 X-Virus-Checked: Checked by ClamAV on apache.org --001a113a96ca2053dc04f0e697f2 Content-Type: text/plain; charset=UTF-8 Hi, I am working on a screen where I need an MX AdvancedDataGrid and a regular DataGrid, and have Spark skin. I used to have a Spark DataGrid there in MXML skin page, everything worked fine, but it looks slightly different from MX ADG, so I am trying to replace that Spark DataGrid with either MX DataGrid or ADG. As soon as I do it, getting the following exception and screen turns white, nothing there: TypeError: Error #1034: Type Coercion failed: cannot convert mx.collections::ArrayList@d6724d9 to mx.controls.dataGridClasses.DataGridColumn. at mx.controls::DataGrid/set columns()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\DataGri d.as:1357] at ieddata.metaweb.view::ExplorerViewSkin/_ExplorerViewSkin_DataGrid1_i( )[C:\MSDE\konovalo\dev\ieddata\pantheon_web\trunk\src\flexpackages\ied data\metaweb\view\ExplorerViewSkin.mxml:30] at Function/() at Function/http://adobe.com/AS3/2006/builtin::call() at mx.core::ComponentDescriptor/get properties()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\C omponentDescriptor.as:271] at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.5.1\frame works\projects\mx\src\mx\core\Container.as:4272] at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.5.1\fra meworks\projects\mx\src\mx\core\Container.as:4183] at mx.core::Container/createChildren()[E:\dev\4.5.1\frameworks\projects\ mx\src\mx\core\Container.as:3189] at mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\fr amework\src\mx\core\UIComponent.as:7624] at mx.core::Container/initialize()[E:\dev\4.5.1\frameworks\projects\mx\s rc\mx\core\Container.as:3131] at mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent. as:7485] at mx.core::UIComponent/addChildAt()[E:\dev\4.5.1\frameworks\projects\fr amework\src\mx\core\UIComponent.as:7189] at spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.5.1\ frameworks\projects\spark\src\spark\components\Group.as:2037] at spark.components::Group/ http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\Group.a s:1628] at spark.components::Group/setMXMLContent()[E:\dev\4.5.1\frameworks\proj ects\spark\src\spark\components\Group.as:633] at spark.components::Group/set mxmlContent()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\compon ents\Group.as:573] at spark.components::SkinnableContainer/set mxmlContent()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\compon ents\SkinnableContainer.as:657] at spark.components::SkinnableContainer/createDeferredContent()[E:\dev\4 .5.1\frameworks\projects\spark\src\spark\components\SkinnableContainer .as:1050] at mx.containers::ViewStack/instantiateSelectedChild()[E:\dev\4.5.1\fram eworks\projects\mx\src\mx\containers\ViewStack.as:1260] at mx.containers::ViewStack/commitProperties()[E:\dev\4.5.1\frameworks\p rojects\mx\src\mx\containers\ViewStack.as:756] at mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\pro jects\framework\src\mx\core\UIComponent.as:8209] at mx.managers::LayoutManager/validateProperties()[E:\dev\4.5.1\framewor ks\projects\framework\src\mx\managers\LayoutManager.as:597] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frame works\projects\framework\src\mx\managers\LayoutManager.as:813] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5 .1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180 ] Skin which is my MXML view: that is where that ExplorerViewSkin.mxml:30 is where exception is coming from. That DataGrid in question is just plain vanilla, nothing special. So why would I get that exception? Please help! Using Flex 4.5.1 TIA, Oleg. --001a113a96ca2053dc04f0e697f2--