PDA

View Full Version : render checkbox for each column based on response xml



kckc1234
15 Sep 2008, 4:52 AM
Hi Everyone,

I have a requirement where in we have to display checkbox (checked/unchecked) for columns based on data coming back from the xml.

Suppose we have an xml as follows:
<service>
<record><flag1>Y</flag1><flag2>N</flag2><flag3>Y</flag3></record>
<record><flag1>N</flag1><flag2>Y</flag2><flag3>Y</flag3></record>
</service>

Now based on the above data,we have a grid which has columns as flag1, flag2, flag3.
Now suppose the data for row 1 of the grid is Y,N and Y for columns flag1,flag2,flag3
then we have to render a checkbox in each column and check it if the value was Y or unchecked otherwise.