New Posts New Posts RSS Feed: Cannot type values into textbox
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Cannot type values into textbox

 Post Reply Post Reply
Author
C0deZ1lla View Drop Down
Newbie
Newbie
Avatar

Joined: 05-Oct-2007
Location: United Kingdom
Posts: 2
Post Options Post Options   Quote C0deZ1lla Quote  Post ReplyReply Direct Link To This Post Topic: Cannot type values into textbox
    Posted: 05-Oct-2007 at 8:59am
Hi
 
Yeah - you are right, I had set the field type to nchar not nvarchar, I had checked this before by changing a few fields to nvarchar but I used the same test data and did not delete the whitespace.. duh :)
 
Many thanks
 
 
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 05-Oct-2007 at 8:47am
My guess is that you are not stripping the trailing white space.  For example, if the TextBox is "FirstName" and the value is "Nancy", you can type in characters after the "y" in Nancy, but if the value is "Nancy" + enough spaces to fill the TextBox, you will get the behavior you describe.
 
The difference in performance between the two databases could be that one database is returning values with trailing white space, and the other database is not.
Back to Top
C0deZ1lla View Drop Down
Newbie
Newbie
Avatar

Joined: 05-Oct-2007
Location: United Kingdom
Posts: 2
Post Options Post Options   Quote C0deZ1lla Quote  Post ReplyReply Direct Link To This Post Posted: 05-Oct-2007 at 8:26am
 Hi
 
I am relatively new to IdeaBlade so forgive me if this is quite trivial.
 
All my textboxes on all my forms that I have created using the control binding manager/model etc.. only allow me to type text into them if the characters in the textbox are highlighted or if the characters are not highlighted I have to delete some characters first before I can type in some text.
 
I have created (in the same solution) another set of model classes from the IdeaBlade tutorial database which is loaded in the same SQL server as my database.  When I create a form and use the control binding manager to link to the IdeaBlade database everything works fine.
 
I have checked that I am creating the model/forms in exactly the same way for both. So I think the problem might be related to my SQL database as this appears to be the only thing different.
 
Can anyone suggest what might be causing this problem?
 
Thanks
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down