This is a migrated thread and some comments may be shown as answers.

XmlDataSource binding

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 1
Kyle asked on 02 Dec 2012, 12:18 AM
I'm trying to bind a RadGrid to an external xml file. The xml looks something like this:

<?xml version="1.0" encoding="utf-8"?>
<catalog>
  <item>
    <id>0ecd4410-3b06-454e-bf0f-97d6323f61c9</id>
    <name>Name #1</name>
  </item>
  <item>
    <id>0ecd4410-3b06-454e-bf0f-97d6323f61c9</id>
    <name>Name #2</name>
  </item>
</catalog>

All of the examples I found were using the xml attributes and not the inner text of a xml node. Is it possible to bind the above xml?

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 05 Dec 2012, 02:21 PM
Hi Kyle,

I prepared a small sample where I demonstrated how you can achieve that. Give it a try and let me know about the results.

All the best,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Kyle
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or