radbusycontrol

5 posts, 0 answers
  1. sandy
    sandy avatar
    23 posts
    Member since:
    Aug 2010

    Posted 31 Jan 2012 Link to this post

    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.
  2. Sarah
    Sarah avatar
    13 posts
    Member since:
    Nov 2011

    Posted 01 Feb 2012 Link to this post

    Kindly reply,
    I am having the same problem too.
  3. DevCraft banner
  4. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 06 Feb 2012 Link to this post

    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 >>
  5. sandy
    sandy avatar
    23 posts
    Member since:
    Aug 2010

    Posted 06 Feb 2012 Link to this post

    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
  6. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 10 Feb 2012 Link to this post

    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 >>
Back to Top
DevCraft banner