PDA

View Full Version : How to ... Grid


moacsjr
01-12-2006, 01:52 AM
Hello!

I can't make the code bellow to work properly.
What I'm doing wrong.

<canvas height="250">

<dataset name="contacts">
<myContacts>
<contact>
<name>Test1</name>
<fone>33333333</fone>
</contact>
<contact>
<name>Test2</name>
<fone>44444444</fone>
</contact>
</myContacts>
</dataset>

<grid datapath="contacts:/myContacts">
<gridtext editable="false" datapath="contact/name/text()">Name</gridtext>
<gridtext datapath="contact/fone/text()" width="200">Fone</gridtext>
</grid>
</canvas>

Moa.

jcmaxx
01-12-2006, 12:41 PM
I think you need to take out the "contact" in the gridtext datapath.
<gridtext editable="false" datapath="name/text()">Name</gridtext>

moacsjr
01-13-2006, 01:41 AM
Thanks! ... it works!

Moa.