11 Answers, 1 is accepted
I'm not sure what't the error however our demo is working as expected. You can check it here:
http://demos.telerik.com/wpf/?GridView/WPF/DataSources
Vlad
the Telerik team

Object of type 'System.Func`2[System.Xml.XmlNode,System.String]' cannot be converted to type 'System.Func`2[System.Xml.XmlElement,System.String]'.
my code is:
Dim provider As New XmlDataProvider()
provider.IsAsynchronous = False
provider.Source = New Uri(xmlfilePath, UriKind.RelativeOrAbsolute)
provider.XPath = "Accounts/Sheets2"
Return New ObservableCollection(Of XmlNode)(DirectCast(provider.Data, IEnumerable(Of XmlNode)))
still getting the error. please help me.
thanks
Can you clarify if this stack trace is from some of our assemblies?
All the best,Vlad
the Telerik team

I did a sample application and the same issue is there :(
MainWindow.xaml:
<
Window x:Class="MainWindow" xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" xmlns:RadGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" xmlns:RadGridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView" Title="MainWindow" Height="350" Width="525"><Grid>
<RadGrid:RadGridView x:Name="GrdList" AutoGenerateColumns="True" MaxHeight="600" MinWidth="650" BorderThickness="2" ></RadGrid:RadGridView></Grid></Window>
MainWindow.xaml.vb
Public Sub New()
InitializeComponent()
GrdList.ItemsSource = GetXmlData()
End Sub
Private Shared Function GetXmlData() As Object
Dim doc As New XmlDocument()
doc.LoadXml("<?xml version=""1.0"" encoding=""utf-8"" ?>" & vbCr & vbLf & "<Products>" & vbCr & vbLf & " <Product>" & vbCr & vbLf & " <ID>1</ID>" & vbCr & vbLf & " <Name>ASP.NET</Name>" & vbCr & vbLf & " <Url>http://www.telerik.com/products/aspnet-ajax.aspx</Url>" & vbCr & vbLf & " </Product>" & vbCr & vbLf & " <Product>" & vbCr & vbLf & " <ID>2</ID>" & vbCr & vbLf & " <Name>WinForms</Name>" & vbCr & vbLf & " <Url>http://www.telerik.com/products/winforms.aspx</Url>" & vbCr & vbLf & " </Product>" & vbCr & vbLf & " <Product>" & vbCr & vbLf & " <ID>3</ID>" & vbCr & vbLf & " <Name>Silverlight</Name>" & vbCr & vbLf & " <Url>http://www.telerik.com/products/silverlight.aspx</Url>" & vbCr & vbLf & " </Product>" & vbCr & vbLf & " <Product>" & vbCr & vbLf & " <ID>4</ID>" & vbCr & vbLf & " <Name>WPF</Name>" & vbCr & vbLf & " <Url>http://www.telerik.com/products/wpf.aspx</Url>" & vbCr & vbLf & " </Product>" & vbCr & vbLf & " <Product>" & vbCr & vbLf & " <ID>5</ID>" & vbCr & vbLf & " <Name>Reporting</Name>" & vbCr & vbLf & " <Url>http://www.telerik.com/products/reporting.aspx</Url>" & vbCr & vbLf & " </Product>" & vbCr & vbLf & " <Product>" & vbCr & vbLf & " <ID>6</ID>" & vbCr & vbLf & " <Name>Sitefinity ASP.NET CMS</Name>" & vbCr & vbLf & " <Url>http://www.telerik.com/products/sitefinity.aspx</Url>" & vbCr & vbLf & " </Product>" & vbCr & vbLf & " <Product>" & vbCr & vbLf & " <ID>7</ID>" & vbCr & vbLf & " <Name>OpenAccess ORM</Name>" & vbCr & vbLf & " <Url>http://www.telerik.com/products/orm.aspx</Url>" & vbCr & vbLf & " </Product>" & vbCr & vbLf & "</Products>" & vbCr & vbLf)
Dim provider As New XmlDataProvider()
provider.IsAsynchronous = False
provider.Document = doc
provider.XPath = "Products/Product"
Return New ObservableCollection(Of XmlNode)(DirectCast(provider.Data, IEnumerable(Of XmlNode)))
End Function
Can you bind the same to regular ListBox?
Regards,Vlad
the Telerik team

this is the code i used:
MainWindow.xaml:
<ListBox x:Name="lstTest">
</ListBox>
MainWindow.xaml.vb:
lstTest.ItemsSource = GetXmlData()
I've just checked this with our latest official service pack (Q3 2010 SP1) and our latest internal build however everything worked fine. You can check the attached application for reference.
All the best,Vlad
the Telerik team

--Thanks

Please help me...
--thanks

We were able to reproduce your issue when we have retargeted the example to use .NET 3.5 . We will implement a fix for this in one of our next latest internal builds.
Thanks for pointing out this issue. I have updated your Telerik points respectively. I have also created a PITS item (#4815) for you in order to track the status of this bug.
Greetings,
Stefan Dobrev
the Telerik team