We have an application where we are using multiple UltraFormattedTextEditor boxes and getting poor performance when assigning text. We create HTML-formatted text and assign it to each instance (e.g. clsText.Value = strString). Assigning the text to the object is quite slow. I've profiled the code using JetBrains dotTrace. The set_Value method of UltraFormattedTextEditorBase seems to be the culprit. In one test case, we have 25 text editor boxes, the set_Value method takes over 7.5 seconds of processing time.
We are using NetAdvantage version 7.2.
Has anyone else seen this? Is there any way to speed this up?
Thanks,
Sean Baker.
How much text are you putting into the editor? How much formatting is applied, typically?
Knowing the nature of the text being put into the editor may help us to determine whether or not this should be expected, and may also help us test to see if this has already been resolved somehow.
The application in question is rather large and complex, so I tried to reproduce the problem with a tiny standalone forms app. We extended UltraFormattedTextEditor with our own class, so I used that. There doesn't seem to be any inherent problem in assigning the text value, the "set_Value" call only uses about 0.4 seconds of processing time for 25 objects with the same text values as in the app.
So there must be something else in the our larger app that is causing the delay. Any guidance here would be greatly appreciated!
Sean.
We will be making some changes to the FormattedTextEditor in NetAdvantage 2010 Volume 1 which will greatly increase the performance.
guidovandewouwer,
Can you reproduce this in an isolated sample? This is the best piece of information that we can receive at the moment to help us investigate what's happening.
Likewise, I'll repeat the questions that I asked earlier, since the answers are likely be relevant to your scenario as well:
If you can reproduce the behavior, please submit a support request and attach your sample to the case. A Developer Support Engineer can then use your sample to investigate this issue.
any news on this topic.
We have similar problems,
entering text in a ultraformattedtexteditor is giving performance problems.
copy past some blocks of text in this control, and try to add some more text.
very bad performance.
Sean Baker said:The application in question is rather large and complex, so I tried to reproduce the problem with a tiny standalone forms app.
Sean Baker said:So there must be something else in the our larger app that is causing the delay. Any guidance here would be greatly appreciated!