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

LoadingPanel disappears after multiple clicks

1 Answer 65 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
IvAN
Top achievements
Rank 1
IvAN asked on 08 Jun 2010, 11:48 PM
Hello there,

One of the testers noticed this "little" problem and till now I can't figure out how to solve it. Let me explain it really simple how to reproduce it:

  1. Go to this sample page, or this one.
  2. You will see two grids, when you click an item on the first grid the second one gets updated via AJAX. Notice that while the second grid is updating it shows a loading indicator (a LoadingPanel).
  3. Now really fast click on two (or more) different items in the first grid and see what happens with the loading indicator.

This is what the tester noticed (and what is driving me crazy): The first time you click on the first grid the loading indicator appears (as it supposed to), the next time you click on the first grid the loading indicator disappears.

Now these are my questions.
  1. The firebug console shows me that the first requests is aborted, but it seems that the request still get executed (in the online cart example you will notice that all of the clicked items will appear in the second grid), is this the expected behavior?
  2. Why does the loading indicator disappear if there are others request executing? Can I prevent this or try to make some work-around to show the loading indicator while the rest of the requests are still executing?

Thanks in advance.

Best regards,
Ivan Guevara

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 09 Jun 2010, 03:43 PM
Hi,

The behavior you are experiencing is due to the fact that you are initiating AjaxRequest before another request finishes. Please review the following help topic for more information on this matter.


Sincerely yours,
Maria Ilieva
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.
Tags
Ajax
Asked by
IvAN
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or