Typing delays


Author
Message
StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Well, it could be that the Set of one of the properties on the BO is firing some data access.  It also could be that the way .NET binding works is that it updates all controls every time one of the data values needs to be updated, and we default the DataSourceUpdateMode to OnPropertyChanged.  So, when you type a letter, it fires it back to the data source, which fires the changed event, which causes the binding context on the form to get all of the values for all fields bound on the form. 

So, that might be the cause... I seem to remember that you have some custom properties that execute queries to get their values, and if one or more of those are bound, then they are being retrieved every time a character is entered in a textbox.

You can solve this by either caching off those values that you retrieve, or by changing the DataSourceUpdateMode on your textboxes to OnValidated to cause the queries to be fired only when the textbox data is completely entered and the user clicks/tabs over to the next control.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I have some users who are reporting extremely slow responses when typing. I.e. when they type, the letters they type do not immediately show up. It is worse when deleting or backspacing. Is there db access when typing into controls, like text boxes? They have a pretty slow connection, which is why I'm wondering about connectivity/db access. This is pretty urgent as I discovered this in a training and they intend to use the system next week.



Thanks!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search