Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent Sorting Problem

Status
Not open for further replies.

madelein

Programmer
Aug 28, 2008
1
I all,

i'm using using JavaScript, C# , Visual Web Developer 2008 Express
I have a form with 2 listboxes (lstCurrent and lstALL) I also have 2 input buttons on the form (btnAdd and btnRemove) - the buttons are used to transfer selected items between the two listboxes. The listboxes are being populated with a sql query on serverside. With my queryi make sure that there is no duplicate value in a listbox (if the value is in lstCurrent its not displayed in lstAll and visa versa. I use a JavaScript Method to handle the moving between the listboxes and it works well. I also use a JavaScript function to sort both listboxes as soon as a item have been moved. This works well as well.

My problem however is that my lstAll is being populated with more than 3000 items and this makes it an endless prosess when the user click on the add/remove button.

I have tried to change the cursor to indicate to the user that there is processing but this does not work as it looks like the screen freezes and then comes alive again a millisecond before the process is finished.

Can anybody give me some tips on how to indicate to the user that the system is busy.

Please, this is an urgent matter as I have a deadline lunchtime tomorrow and its the only issue outstanding.

Kind Regards,
Madelein
 
Hi

Madelein said:
Can anybody give me some tips on how to indicate to the user that the system is busy.
Cover the whole document with an opaque [tt]div[/tt] containing the wait message, so the user can not click the controls again.

But I strongly suggest to review your code and make it work faster instead. Of course, unless it is an AJAX application.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top