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

BusyIndicator when DropDownButton DropDownContent is open

1 Answer 25 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Des
Top achievements
Rank 1
Des asked on 24 Feb 2012, 01:21 AM
I am having difficulties getting a busy indicator to show when a dropDown button is clicked.  The dropDown buttons are created dynamically from a collection and a command is attached to each button.  When the button is clicked, the command executes a specific service call to get the content of the dropdown.  However, this service call may take a while to execute and I would like to show a busyindicator when this is happening.  I have tried adding the busy indicator to the dropdown content with the listbox that gets populated after the service call is finished executing.  However, it seems that the dropdown content is not even visible until the service call finishes.

I have also tried putting a busy indicator outside of the dropdownbutton (on a higher branch of the visual tree).  The problem is that once the dropdownbutton is clicked, it seems that the whole UI freezes until the content gets populated so the busy indicator does not show.

We do not want to make the service call until the user clicks on that dropdown button. Can you please guide me on how I can accomplish this?

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 28 Feb 2012, 07:56 AM
Hello,

It seems something is freazing your thread. I guess proccessing the data on the clients side is a slow operation and it freezes your UI. I would suggest you to use BackgroundWorker to proccess the data at the client's side. You can find an example with RadBusyIndicator and BackgroundWorker into our online examples here. It is the RadBusyIndicator's FirstLook example.

Greetings,
Ivo
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
Des
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or