or
if (grid.ItemsSource == null) { //Creates the reference for the duplex Service InstanceContext instanceContext = new InstanceContext(new CallbackHandler()); ServiceReference1.ServiceDuplexClient client2 = new ServiceDuplexClient(instanceContext); this.Cursor = System.Windows.Input.Cursors.Wait; //Call the service functon that returns the DataSet DataSet ds = client2.EventSummary(); this.Cursor = System.Windows.Input.Cursors.Arrow; if (ds != null) { if (ds.DataSetName.Equals("OK")) { //If it's OK the DataSet is the ItemsSource of the grid grid.ItemsSource = ds; } }}<telerik:RadBusyIndicator x:Name="busyIndicator" BusyContent="Loading data...." Grid.ColumnSpan="3" Grid.RowSpan="3">public partial class Page1 : Page{ //Declare my background worker BackgroundWorker workerOperAct = new BackgroundWorker(); public Page1() { InitializeComponent(); workerOperAct.DoWork += this.WorkerOperActDoWork; workerOperAct.RunWorkerCompleted += WorkerOperActRunWorkerCompleted; } private void WorkerOperActDoWork(object sender, DoWorkEventArgs e) { //Create the reference for the service InstanceContext instanceContext = new InstanceContext(new CallbackHandler()); ServiceReference1.ServiceDuplexClient client2 = new ServiceDuplexClient(instanceContext); //Call the service function that returns the DataSet DataSet ds = client2.EventSummary(); if (ds != null) { if (ds.DataSetName.Equals("OK")) {
grid.ItemsSource = ds; }
} } void WorkerOperActRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { grid.Visibility = Visibility.Visible;
this.busyIndicator.IsBusy = false; } //More code....}DataSet ds = client2.EventSummary();when i use the chart,and use chart.Series[0].ItemsSource = tempDrw ( here the tempDW is a double type array; to draw the line like the attachment.
but i have a problem: when the data in the tempDrw change but the chat can not updata.

<telerik:RadMaskedTextInput Name="radSocialSecurityNo" Mask="d3-d2-d4" VerticalAlignment="Center" TabIndex="11" Value="{Binding Path=SocialSecurityNo}" SelectionOnFocus="SelectAll" ValueChanged="radSocialSecurityNo_ValueChanged" LostFocus="radSocialSecurityNo_LostFocus" TextMode="MaskedText" InputBehavior="Replace" />