Welcome Guest Search | Active Topics | Sign In | Register

Spellchecker dialog slow to open/close Options
DonL
Posted: Wednesday, September 7, 2011 3:00:15 PM
Rank: Member
Groups: Member

Joined: 12/3/2010
Posts: 10
I've implemented spellchecker (latest/last 8.0 version in a .NET 1.1 legacy app) in an identical fashion on a number of fields across a number of pages. It works fine everywhere except on one specific page; on that page, if I fire off the spell checker on a textbox that isn't empty, IE stops responding, CPU usage spikes and stays fairly steady at about 10-12% (app is running inside a virtual machine that uses a single core)... but if I walk away for 3-5 minutes, the dialog will come up and function properly.

I saw a discussion of similar issue here , but I don't think it's the same problem; there's no postback happening. I even checked it out in Fiddler and there's no http traffic happening in the minutes between the button click and the arrival of the dialog snippet. I've dropped alerts into the client-side code to verify that the delay isn't somewhere else; everything up until the SpellChecker.start(target) happens without delay.

The final HTML generated by the code for this page comes out to about twice the size of the next largest, and its viewstate is about 75% bigger. It doesn't seem like the overall page size should have an effect, but even if it did, the size difference wouldn't likely explain the difference of several minutes.

The page does, however, have a listbox with a large number of entries - sometimes several hundred. Just for the sake of dropping the page size, I commented out he population code for this list... and with the list empty, the spellcheck dialog pops up right away! Again, no postback happening that would be causing the list to re-populate (and in any case the dialog takes much longer to come up than the page does to load).

Any idea what could be causing this and how to work around it? Dropping the list box isn't really an option.





eo_support
Posted: Wednesday, September 7, 2011 3:20:41 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

The list is almost certainly the problem. You can try to temporarily removing that list to verify that. If that's the problem, then there is no way to work around it. You have to reduce the number of items in the list or completely remove the list.

If that is not the problem, then we will need you to try to isolate the problem into a test project and send it to us. We will run it here when we have that. As soon as we can see the problem here, we should be able to tell you what's causing it.

Thanks!
DonL
Posted: Wednesday, September 7, 2011 3:26:05 PM
Rank: Member
Groups: Member

Joined: 12/3/2010
Posts: 10
Why would the number of items in a listbox inhibit a dialog aimed at an unrelated textbox from opening?
eo_support
Posted: Wednesday, September 7, 2011 4:04:08 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I believe it's because the code looping through all option items to find the selected item. I do believe this can be optimized. We will see if we can change that in our next build.

Thanks
DonL
Posted: Monday, September 12, 2011 5:24:59 PM
Rank: Member
Groups: Member

Joined: 12/3/2010
Posts: 10
eo_support wrote:
Hi,

I believe it's because the code looping through all option items to find the selected item. I do believe this can be optimized. We will see if we can change that in our next build.

Thanks



I don't suppose there will be a next built of the 8.0 version? This app is on a 1.1 platform.

eo_support
Posted: Monday, September 12, 2011 6:12:18 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
No. It will be in 9.0 if it's implemented.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.