Change mx:columns to compclass:columns.  The namespace of the property must match the namespace of the component.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, October 12, 2005 1:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using an extended DataGrid Class - Don't know how to parse element "http://www.macromedia.com/2003/mxml:columns"

 


Now that I am able to read the DataGrid displayed values, I am facing
another problem. When I try to use my new class, the one that extended the
DataGrid ( GridHTML.as), I am getting this error message:

Don't know how to parse element
"http://www.macromedia.com/2003/mxml:columns". It is not a known type or a
property of mycomp.com.GridHTML.

I was expecting to be able to use the same syntax for my class.

Any ideas???

Thanks.


             <!-- GridHTML.as-->
      class mycom.com.GridHTML extends mx.controls.DataGrid

      {

      // Tranlates the Grid to a HTML table
          function getHTML ():String
              {
            .........
            ....
            return strHTML;
             }
      }

<!-- main.mxml -->
<compclass:GridHTML id="dgformshtml" dataProvider="{searchResult}"      >
      <mx:columns>
            <mx:Array>
                  <mx:DataGridColumn columnName="myFullName" headerText="
Name" labelFunction="lblFunctionName" />
                  <mx:DataGridColumn columnName="clientID"
headerText="Client ID" />
            </mx:Array>
      </mx:columns>
</compclass:GridHTML>

---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to