I was having trouble implementing a WCF Service for getting HTML chart data on the client side based on the example in the Demo "HtmlChart - Client-side Binding"
The trouble spot was in the setServiceDataInChart function. The demo site source code is:
//Get the returned data
newData = args.get_content();
//get a reference to the RadHtmlChart
chart = getChartReference();
//Set the new datasource to the RadHtmlChart
//Repaint the RadHtmlChart
//Avoid raising the OnClientResponseEnded client-side event
//avoid setting the received data as content for the RadXmlHttpPanel
"<strong>Data from the WCF service:</strong>"
I got two different errors when the code got to "chart.repaint();"
First problem was that my WCF service was not serving data back until I changed the OperationContract WebInvoke BodyStyle to WebMessageBodyStyle.WrappedRequest. This caused the second problem, namely, the value of newData returned was now wrapped, so I had to specify
in the setServiceDataInChart function.