Hi,
I consider myself as newbie in Telerik. I am trying to bind RADHtmlChart to SQLDatasource and it works in other project except this specific one. Hope someone can point out the issue. If I load the same data in ASP Datagrid I can see it on my page. However both RadGrid and RadHTMLChart doesn't work. One more thing, the normal RadChart works fine with same data source.
ASPX Code
SQL DataSource
I consider myself as newbie in Telerik. I am trying to bind RADHtmlChart to SQLDatasource and it works in other project except this specific one. Hope someone can point out the issue. If I load the same data in ASP Datagrid I can see it on my page. However both RadGrid and RadHTMLChart doesn't work. One more thing, the normal RadChart works fine with same data source.
ASPX Code
<telerik:RadHtmlChart ID="RadHtmlChart2" runat="server" DataSourceID="SqlDataSource1" Height="400px" Width="1200px" InvokeLoadData="OnPageLoad"> <PlotArea> <Series> <telerik:LineSeries DataFieldY="47" Name="Lync"></telerik:LineSeries> <telerik:LineSeries DataFieldY="48" Name="Outlook"></telerik:LineSeries> <telerik:LineSeries DataFieldY="49" Name="IE"></telerik:LineSeries> </Series> <XAxis DataLabelsField="YDate" Name="ExecutionDate" Visible="true"></XAxis> <YAxis Name="ExecutionCount" MaxValue="1000" MinValue="0" Step="100"></YAxis> </PlotArea> </telerik:RadHtmlChart>SQL DataSource
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SmartButton3ConnectionString %>" SelectCommand="SELECT * FROM (SELECT CoreTriggerPluginID, CONVERT(VARCHAR(10),CreatedDateTime,101) as YDateFROM [SmartButton3].[Universal].[TblCoreTriggerPluginUsage] where CoreTriggerPluginID IN (47,48,49)) XPIVOT(COUNT(X.CoreTriggerPluginID) FOR X.CoreTriggerPluginID IN ([47], [48], [49])) AS PVTTable ORDER BY PVTTable.YDate"></asp:SqlDataSource>