We are using the RAD chart and love it. We are having a problem displaying XML data in non file format. If we save the XML file the chart populates correctly, if we try using an object, we get :
“There is no or empty series”
Here is our code, any help would be appreciated:
We have to bind RadChart.
…..
Dim resp As HttpWebResponse = DirectCast(req.GetResponse(), HttpWebResponse)
Dim reader As New StreamReader(resp.GetResponseStream())
Dim d As New XmlDocument()
d.LoadXml(reader.ReadToEnd())
reader.Close()
d.Save(Server.MapPath("xmlFiles/Expense.xml"))
RadChart1.DataSource = Server.MapPath("~/xmlFiles/Expense.xml")
RadChart1.DataBind()
This is works, but if I try to bind without save xml file (d.Save(Server.MapPath("xmlFiles/Expense.xml"))) :
…..
Dim resp As HttpWebResponse = DirectCast(req.GetResponse(), HttpWebResponse)
Dim reader As New StreamReader(resp.GetResponseStream())
Dim d As New XmlDocument()
d.LoadXml(reader.ReadToEnd())
reader.Close()
RadChart1.DataSource = d.OuterXml
RadChart1.DataBind()