PDA

View Full Version : Store/Grid for this XML



nani_chinni
11 Jan 2010, 9:41 PM
I have the below XML:


<records>

<record>
<a>a1</a>
<b>b1</b>
<c>c1</c>
<props>
<prop>
<name>p1</name>
<value>val1</value>
</prop>
<prop>
<name>p2</name>
<value>val2</value>
</prop>
</props>
</record>

<record>
<a>a2</a>
<b>b2</b>
<c>c2</c>
<props>
<prop>
<name>pr</name>
<value>val0</value>
</prop>
</props>
</record>

</records>I know how to create a store for records, have each record and the Grid columns a,b, and c mapped to the respective xml elements.

Now, how do I display editable 'props' (which can have varied number of 'prop' elements in it) for each row in the Grid? Insert one more PropertyGrid as the last column?

I am sure this is a common situation to have a collection with varied number of entries for each row, as it is not all static structure in modern data.

Any pseudo-code or relevant examples will be of great help.