StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Typing delaysExpand / Collapse
Author
Message
Posted 01/31/2008 7:25:18 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 7:29:55 PM
Posts: 1,168, Visits: 2,931
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!
Post #13899
Posted 02/01/2008 8:53:11 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 9:09:33 AM
Posts: 2,661, Visits: 1,876
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.


www.bungie.net
Post #13906
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 8:10pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.