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

Grid and XmlDataSource

1 Answer 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Abid
Top achievements
Rank 1
Abid asked on 28 Jul 2011, 12:26 PM
I am trying to bind a grid with xml datasource.
<asp:XmlDataSource ID="XmlDataSource1" runat="server" EnableCaching="False"
    DataFile="http://www.w3schools.com/xml/cd_catalog.xml" XPath="CATALOG/CD"></asp:XmlDataSource>
But no data displayed. Is there any error in my XPath.

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 02 Aug 2011, 03:34 PM
Hello Abid,

Does a regular GridView bind to the XmlDataSource that you have configured? If not, then the problem should be with the datasource control, not with RadGrid.
Information about RadGrid specifics related to using an XmlDataSource is available here:
http://www.telerik.com/help/aspnet-ajax/grid-population-from-xml-datasource-control.html

And you can see a live demo here:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/xmldatasource/defaultcs.aspx

All the best,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Abid
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or