Using xml with datagrid - problem with element attributes ...
when try set datafield in datagridcolumn attribute, ex.: @ispermalink - value not printet in datagrid?
my code:
-------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:application xmlns:mx=" http://www.adobe.com/2006/mxml" creationcomplete="feedrequest.send()" layout="absolute" backgroundgradientcolors="[#808080, #c0c0c0]">
<mx:httpservice id="feedrequest" url=" http://kristianthrane.dk/feed" useproxy="false" />
<mx:panel x="10" y="10" width="475" title="{feedrequest.lastresult.rss.channel.title}" id="panel1" height="531">
<mx:datagrid id="dgposts" x="20" y="20" width="100%" dataprovider="{feedrequest.lastresult.rss.channel.item.guid}" height="100%">
<mx:columns>
<mx:datagridcolumn headertext="lande" datafield="@ispermalink" />
</mx:columns>
</mx:datagrid>
</mx:panel>
</mx:application>
-------------------------------------------
i hope has tip ....
best regards,
kristian thrane
hi kristian,
i'm problems, bit alike yours, i've seen, recomend see type errors...does atribute "ispermalink" inside "guid" tag, or "title" tag?
my problem opposite of have... can place tag attributes in datagrid, can't put in same datagrid tag value. have no choice since feed comes public webservice.
my feed is:
<search ver="3.0">
<loc id="brxx1094" type="1">aveiro, brazil</loc>
<loc id="poxx0006" type="1">aveiro, portugal</loc>
</search>
<mx:datagrid x="10" y="53" width="365" id="dglocation" dataprovider="{wsearch.lastresult.loc}" itemclick="callservice(event);">
<mx:columns>
<mx:datagridcolumn headertext="localidade" datafield="loc"/> //this doesn't work
<mx:datagridcolumn headertext="referência" datafield="@id"/> //this does
</mx:columns>
</mx:datagrid>
hope give ideas.
beste regards
leonel
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment