CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

CSLA/Silverlight Binding not responding to keypress.

rated by 0 users
This post has 2 Replies | 0 Followers

Not Ranked
Posts 2
dts Posted: Tue, Nov 25 2008 8:51 AM
Hi

I first noticed this in a CSLA Silverlight app I have been experimenting with and have just downloaded the lastest Rolodex sample and get the same behaviour.

If for instance I edit the AT&T company record by adding an extra character at the end of the company name textbox I sometimes find that the save button is not enabled when I tab off the textbox control. Even if I shift tab back or change the focused control using the mouse nothing happens until I enter another character.

On a CSLA Silverlight app that I have been experimenting with I can enter a single character into a sequence of textboxes after tabbing between each of them and get the same behaviour. I added some code and discovered that the text changed event is being invoked but none of the csla silverlight code is run.

Also if I do enter more than one character into a textbox and then click save the previous textboxes which did not cause a change in the save button lose their change.

Is this possibly a silverlight bug?

Regards
DTS

Top 10 Contributor
Posts 707
sergeyb replied on Tue, Nov 25 2008 8:57 AM

Indeed, you discovered an SL bug.  One character change is not pushed by binding infrastructure to underlying object.  At least two character change is required.  I think this has been logged in Silverlight.net, but I am not 100% positive.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: dts [mailto:cslanet@lhotka.net]
Sent: Tuesday, November 25, 2008 9:52 AM
To: Sergey Barskiy
Subject: [CSLA .NET] CSLA/Silverlight Binding not responding to keypress.

 

Hi

I first noticed this in a CSLA Silverlight app I have been experimenting with and have just downloaded the lastest Rolodex sample and get the same behaviour.

If for instance I edit the AT&T company record by adding an extra character at the end of the company name textbox I sometimes find that the save button is not enabled when I tab off the textbox control. Even if I shift tab back or change the focused control using the mouse nothing happens until I enter another character.

On a CSLA Silverlight app that I have been experimenting with I can enter a single character into a sequence of textboxes after tabbing between each of them and get the same behaviour. I added some code and discovered that the text changed event is being invoked but none of the csla silverlight code is run.

Also if I do enter more than one character into a textbox and then click save the previous textboxes which did not cause a change in the save button lose their change.

Is this possibly a silverlight bug?

Regards
DTS



Not Ranked
Posts 2
dts replied on Tue, Nov 25 2008 9:25 AM
Thanks for the reply  Sergey

Just did a google and there are several sites commenting on it

http://karlshifflett.wordpress.com/2008/04/12/silverlight-2-lostfocus-and-data-binding-bugs/

Cheers
DTS


Page 1 of 1 (3 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems