Hi,
I am trying to figure this out for past couple of days.
I would like to know how to implement RadGrid with xmldatasource. It's pretty easy to bind it in the front end. But I would like to bind the xml to gridview from serverside. I would like to use XPath and DOM model to select the nodes/attributes from my Xml to be displayed as columns in the Gridview and content accordingly. My Xml looks something similar to this:
<structure>
<headers>
<headertext text="Product Name">
<headertext text="Product ID">
<headertext text="Product No.">
</headers>
<content>
<row value="Apple">
<row value="123">
<row value="354367">
</row>
</row>
I would like to populate HeaderText (Product Name, Product ID .... as column header) from server side using XPath and DOM and rows for each of the columns. Basically, there can be many columns and I have to iterate through each of them and display all column with all data.
Secondly, I am not able to create an instance of XmlDocument to load the xml from the server side, causing couple of errors.
Would be great if someone can help me in this issue.
Thanks.
<
telerik:GridDropDownColumn
HeaderStyle-Width
=
"140"
ItemStyle-Width
=
"140"
FooterStyle-Width
=
"140"
UniqueName
=
"MCHAVER"
DataField
=
"MCHAVER"
HeaderImageUrl
=
"~/Skins/Gray/Grid/BursaMas.JPG"
DropDownControlType
=
"DropDownList"
ListTextField
=
"Text"
ListValueField
=
"Key"
AutoPostBackOnFilter
=
"true"
/>