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

xmldataprovider issue with radgrid dotnet frame work 3.5 and rad version 2010.3.1314.35

2 Answers 69 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Afsal
Top achievements
Rank 1
Afsal asked on 10 Feb 2011, 06:22 AM
xaml:
<RadGrid:RadGridView x:Name="GrdList" AutoGenerateColumns="True" MaxHeight="600" MinWidth="650" BorderThickness="2" ></RadGrid:RadGridView>
code behind:
Public Sub New()
InitializeComponent()
GrdList.ItemsSource = GetXmlData()
End Sub
Private Shared Function GetXmlData() As Object
Dim doc As New XmlDocument()
doc.LoadXml("<?...")
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
throws exception: 'System.Func`2[System.Xml.XmlNode,System.String]' cannot be converted to type 'System.Func`2[System.Xml.XmlElement,System.String]'.
I am using dotnet framework 3.5 and version of rad dll is 2010.3.1314.35.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 10 Feb 2011, 08:28 AM
Hello,

 You do not need to open new thread. Let's use your other thread!

Greetings,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Afsal
Top achievements
Rank 1
answered on 10 Feb 2011, 08:43 AM
Please let me know if there any fix for this issue as soon as possible.
Tags
GridView
Asked by
Afsal
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Afsal
Top achievements
Rank 1
Share this question
or