RadbusyIndicator loading after information loaded to grid

4 posts, 0 answers
  1. Abhi
    Abhi avatar
    2 posts
    Member since:
    Sep 2012

    Posted 12 Feb 2013 Link to this post

    Hi I need radbusyindicator to show while information is being loaded.  I am not using MVVM, code is written in code behind.  I am including the code here.  Right now, the busyindicator only loads after radgridview is already loaded.  Can you please help me.


    <telerik:RadBusyIndicator x:Name="busyIndicator" Grid.Row="1" />

    private void LoadAnswers(Int64 inputSurveyId = 0)
            {
                busyIndicator.IsBusy = true;

                this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (ThreadStart)delegate()
                    {
                        //busyIndicator.IsBusy = true;
                        if (inputSurveyId > 0)
                        {
                            //busyIndicator.IsBusy = true;
                            loadList.Clear();
                            loadList.AddRange(saf.GetAnswerUnfilteredE(inputSurveyId));
                            workList.Clear();
                            workList.AddRange(loadList);
                        }
                        else
                        {
                            loadList.Clear();
                            //busyIndicator.IsBusy = true;
                            loadList.AddRange(saf.GetAllE());
                            workList.Clear();
                            workList.AddRange(loadList);
                        }

                        QueryableCollectionView qCV = new QueryableCollectionView(workList);
                        rgvAnswers.DataContext = qCV;
                        rgvAnswers.ItemsSource = qCV;
                        rgvAnswers.Rebind();
                        //busyIndicator.IsBusy = false;
                    });
            }
  2. Abhi
    Abhi avatar
    2 posts
    Member since:
    Sep 2012

    Posted 13 Feb 2013 Link to this post

    Solved it
  3. UI for WPF is Visual Studio 2017 Ready
  4. Soma
    Soma avatar
    2 posts
    Member since:
    Aug 2010

    Posted 07 Mar 2013 Link to this post

    Hi Abhi,

    It would be great and helpful if you share how you have solved the issue.

    Thanks in advance,
    Somasundaram P
  5. Mask
    Mask avatar
    20 posts
    Member since:
    Sep 2009

    Posted 15 Mar 2013 Link to this post

    Hi Abhi
    I Have this kind of problem
    When I retrieve data from server for my gridview, at the start of function call I set IsBusy = "True" and in Async method, after evrything ends set IsBusy = "False", but RadBusyIndicator does not wark

Back to Top