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



Object Mapper Trim OptionExpand / Collapse
Author
Message
Posted 06/03/2006 5:03:57 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 9:59:14 AM
Posts: 361, Visits: 1,767

One problem with the new trim options in OM is that if you set “Trim Left and Right” you cannot enter text with an embedded space.  For example if I have a field called business name I would like to allow “Microsoft Corporation” but not “_Microsoft Corporation”, “Microsoft Corporation_“, or  “_ Microsoft Corporation_“.  In this case when you try to enter the blank following “Microsoft” the cursor repositions to the beginning of the text.  The only way to add the space is to insert it after you’ve entered the entire text string. I can code around this but it would be nice if there were some way for the framework to automatically handle it.

-Larry

 

Post #1370
Posted 06/04/2006 9:04:49 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 2 days ago @ 5:02:56 PM
Posts: 2,682, Visits: 1,882
Hrm.  Thanks for the heads up on that Larry.  I'll check into that.  One think you might do is try changing the BindingUpdateMode on the TextBox control from OnPropertyChanged to OnValidation and see if that helps.  That will set the binding to only push its entered data back to the business object when the control validates.


www.bungie.net
Post #1377
Posted 06/05/2006 10:53:48 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 9:59:14 AM
Posts: 361, Visits: 1,767
Ben,

Thanks for the 'OnValidation' tip. That results in the behavior I was looking for.

-Larry

Post #1390
Posted 06/05/2006 10:55:51 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 2 days ago @ 5:02:56 PM
Posts: 2,682, Visits: 1,882
I'm glad that worked... I'm still checking to see if there is a way to work around it if the BindingUpdateMode is still set to OnPropertyChanged, but it's not looking that way.


www.bungie.net
Post #1391
« 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 7:22pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 11 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.