I have some data that is coming from a Stored procedure which i have been able to display in a non-Telerik DataGrid. using the following code.
But with using the radCartesianChart, It says that there is no ItemSource.
So How do i load the chart with Data?
CBFdataDataContext conn = new CBFdataDataContext(); List<spTotalRevByZipResult> sptotalrevbyzipresult = (from s in conn.spTotalRevByZip() select s).ToList(); ZipGrid.ItemsSource = sptotalrevbyzipresult;But with using the radCartesianChart, It says that there is no ItemSource.
<telerik:RadCartesianChart HorizontalAlignment="Left" Margin="10,104,0,0" Grid.Row="1" VerticalAlignment="Top" Width="723" Height="218" Name="ZipGrid"> <telerik:RadCartesianChart.VerticalAxis> <telerik:LinearAxis/> </telerik:RadCartesianChart.VerticalAxis> <telerik:RadCartesianChart.HorizontalAxis> <telerik:CategoricalAxis/> </telerik:RadCartesianChart.HorizontalAxis> <telerik:RadCartesianChart.Series> <telerik:BarSeries CategoryBinding="subTotal" ValueBinding="custzip" ItemsSource="{Binding}"/> </telerik:RadCartesianChart.Series> </telerik:RadCartesianChart>CBFsqldataDataContext conn = new CBFsqldataDataContext(); List<spTotalRevByZipResult> sptotalrevbyzipresult = (from s in conn.spTotalRevByZip() select s).ToList(); ZipGrid????????? = sptotalrevbyzipresult;