silverlight datagrid - WCF Service Data auto refresh
i have silverlight page, it has a datagrid. I have created a WCF service which generates data for that datagrid. In my silverlight page, i call that service as shown below
MyService.MyServiceClient mysvcclient1;
mysvcclient1= new MyService.MyServiceClient();
mysvcclient1.GetDataGridDataCompleted += new EventHandler<MyService.GetDataGridDataCompletedEventArgs>(CompletedHereGetDataGrid);
mysvcclient1.GetDataGridDataAsync();
mysvcclient1.CloseAsync();
}
now i want to refresh that data every 30 seconds... what is the best way to do that?
thanks....
Microsoft DevelopmentWCF
Last Comment
at999
8/22/2022 - Mon
Aaron Jabamani
Have a Timer in silverlight and refresh your datagrid.
1. When making call , stop the timer.
2. When the async call comes back , start the timer.
thanks so much gauthampj, will my GUI be stuck when i start DispatcherTimer ? i mean if i start DispatcherTimer will user be able to click other buttons on my silverlight page? please help,,,, many thanks
1. When making call , stop the timer.
2. When the async call comes back , start the timer.