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

how to display the BusyIndicator that hang ExpandAll () runs a RadTreeView

2 Answers 26 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bouda
Top achievements
Rank 1
bouda asked on 12 May 2011, 04:15 PM
Hello ,

I am using Silverlight application and I have a Telerik RadTreeView. I like display the BusyIndicator hang the methode ExpnadAll() runs.
Note : (My RadTreeView contains many elements)

My code looks like this :

 

 

private void Button_ExpandAll(object sender, RoutedEventArgs e)

 

 

{

 

 

 

 

    this.MyBusy = true;

 

 

 

    this.MytreeView.ExpandAll();

 

 

 

    this.MyBusy = false;
}

But the BusyIndicator is never displayed.

 

Cordially
Theo

2 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 13 May 2011, 08:12 AM
Hello bouda,

I am afraid that this is not possible due to the fact that the expand operation blocks the UI thread.


Regards,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Eugeniy
Top achievements
Rank 2
answered on 22 May 2011, 07:18 PM
just start the second thread:

radBusyIndicator.IsBusy = true;
  
new Thread( ()=>
{
   Dispatcher.Invoke( new Action(()=>
       {
             tree.ExpandAll();
             radBusyIndicator.IsBusy=false;
       }))
}
 ).Start();
Tags
General Discussions
Asked by
bouda
Top achievements
Rank 1
Answers by
Milan
Telerik team
Eugeniy
Top achievements
Rank 2
Share this question
or