Hi All,
I am trying to implement an XML based Datasource and can't get it right.
Here is my requirement.
The XML I have looks like that
<Root>
<Attributes>
<Attribute ID="1' name="attr1" value="">
<AllowedValues>
<AllowedValue value="val1"/>
<AllowedValue value="val2"/>
</AllowedValues>
</Attribute>
<Attribute ID="2' name="attr2" value="">
<AllowedValues>
<AllowedValue value="val3"/>
<AllowedValue value="val4"/>
</AllowedValues>
</Attribute>
</Attributes>
</Root>
What I need to display is a LisrGrid with 2 columns - AttributeName and AttributeValue. Each AttributeValue cell has a selectItem editor that contains the list of allowed values for this attribute. So in this example allowed values for attr1 would be val1 and val2 and for attr2 - val3 and val4.
Whatever I try doesn't produce result I want. At best I have only first allowed value for each attribute - val1 and val3 correspondingly.
What is the right way to do it right?
Thanks in advance?
I am trying to implement an XML based Datasource and can't get it right.
Here is my requirement.
The XML I have looks like that
<Root>
<Attributes>
<Attribute ID="1' name="attr1" value="">
<AllowedValues>
<AllowedValue value="val1"/>
<AllowedValue value="val2"/>
</AllowedValues>
</Attribute>
<Attribute ID="2' name="attr2" value="">
<AllowedValues>
<AllowedValue value="val3"/>
<AllowedValue value="val4"/>
</AllowedValues>
</Attribute>
</Attributes>
</Root>
What I need to display is a LisrGrid with 2 columns - AttributeName and AttributeValue. Each AttributeValue cell has a selectItem editor that contains the list of allowed values for this attribute. So in this example allowed values for attr1 would be val1 and val2 and for attr2 - val3 and val4.
Whatever I try doesn't produce result I want. At best I have only first allowed value for each attribute - val1 and val3 correspondingly.
What is the right way to do it right?
Thanks in advance?
Comment