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.
Vince McDonald"] How much text are you putting into the editor? How much formatting is applied, typically?
In my test case of 25 objects, the length of the text ranges from 102 characters to 202 characters, for an average of about 145 characters.
Here's a sample of the typical text:
<span style="color:#750012; font-family:Arial; font-size:31pt; text-align:Center;">This is the actual text</span>
Thanks for the help!