cancel
Showing results for 
Search instead for 
Did you mean: 

Busy Dialog Not Showing Immediately

Former Member
0 Kudos

Hi all,

I have a tree node in my application. If i select that tree node i want to show a busy dialog and then that particular page should render.

For that i have written the code as

onTreeSelect: function() {

var oBusyIndicator = new sap.m.BusyDialog({text: "Loading..."});

oBusyIndicator.open();

here comes my ajax call......

oBusyIndicator.close();

oSplitApp.toDetail("myView");

},



The busy indicator is not showing immediately when i click on that tree node. It takes some time to open the busy indicator.

But when i debug and see it is opening properly.


How can i overcome this.

Please help me on this.




Thanks

Sathish.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182862
Active Contributor
0 Kudos

HI Sathish

Is your AJAX Call async ?

-D

Former Member
0 Kudos

Hi Dennis,

No its sync.

Thanks

Sathish.

former_member182862
Active Contributor
0 Kudos

Hi Sathish

This will not work if your AJAX call is sync. Your browser to be "frozen" until the AJAX call is completed.

-D

Former Member
0 Kudos

Hi Dennis,

If i make it as async it will work?

Thanks,

Sathish.

former_member182862
Active Contributor
0 Kudos

Hi Sathish

It will work but the dialog close function has to be called in the complete callback function of your Ajax call.

-D

Former Member
0 Kudos

Hi Dennis,

Thanks for ur information.

Thanks

Sathish.