This is a migrated thread and some comments may be shown as answers.

radbusycontrol

4 Answers 123 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sandy
Top achievements
Rank 1
Iron
Veteran
sandy asked on 01 Feb 2012, 12:36 AM
Hi,
in my application i have one radgrid and  radio buttons(like  1)100days   2) 1 year  3)user specified date.
here whn data loading into page first time by default 1st radio button is selecting.
when page is loading the data is loading into radgrid (from data context) by showing the busyindicatror control.
till here its working fine.
but here am getting the prob is that when am selecting the radio button i have to show the busy indicator and then load data into
radgrid. but in my application whn am selecting radio button am getting data directly without showing the busy indicator.
am used display after method also in busy indicator. but its not working.
here is sample code.
 private void yearRadBtn_Checked(object sender, RoutedEventArgs e)
        {
            radBusyIndicator.IsBusy = true;
           
            dateGrid.Visibility = Visibility.Collapsed;
            yearRadBtn.IsChecked = true;
            startDateVar = DateTime.Today.AddDays(-365);
            endDateVar = DateTime.Today;
            this.Check_BasicSerach_Selection();
        }

thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Sarah
Top achievements
Rank 1
answered on 01 Feb 2012, 07:50 PM
Kindly reply,
I am having the same problem too.
0
Boyan
Telerik team
answered on 06 Feb 2012, 09:48 AM
Hi,

Could you please try to use BackGroundWorker  class as shown in this example. This should work as expected. If you are still having problems let us know.

All the best,
Boyan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
sandy
Top achievements
Rank 1
Iron
Veteran
answered on 06 Feb 2012, 11:23 PM
hi,
am seen ur example.
am getting some errors in background implementation.
in viewmodel.cs file for appointment place its asking create a class,
in xaml.cs page am getting errors in this bold place(in this place also it is asking for create a class.)

 private void UpdateSchedulerAppointmentsSource(ObservableAppointmentCollection appointments)
        {
            this.scheduler.AppointmentsSource = appointments;
            this.busyIndicator.IsBusy = false;
        }

        private void OnBackgroundWorkerRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            Dispatcher.BeginInvoke(new Action<ObservableAppointmentCollection>(this.UpdateSchedulerAppointmentsSource), e.Result);
        }
and in view model.cs page am getting this error also
 InvokeOnUIThread(() =>
the name invokeonUIthread does not exit in the current context.
and
//using Telerik.Windows.Controls.ScheduleView; am not getting this assembly reference
0
Boyan
Telerik team
answered on 10 Feb 2012, 10:11 AM
Hi,

This Appointment class is in Telerik.Windows.Controls.ScheduleView assembly, that is why it is not found. I have attached a sample project how this is done with RadGridView.

All the best,
Boyan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
BusyIndicator
Asked by
sandy
Top achievements
Rank 1
Iron
Veteran
Answers by
Sarah
Top achievements
Rank 1
Boyan
Telerik team
sandy
Top achievements
Rank 1
Iron
Veteran
Share this question
or