This is a migrated thread and some comments may be shown as answers.

Inputed text don't commit to QDSVC when close the RadWindow immediately

2 Answers 29 Views
Window
This is a migrated thread and some comments may be shown as answers.
xu
Top achievements
Rank 1
xu asked on 21 Mar 2012, 11:16 AM

Hi,

My problem is that if you input some text in a textbox on the RadWindow , and click the close button immediately without changing focus to other controls, the text would not commit to QDSCV in the bound ViewModel, it's HasChanges property keeps false. How can I solve this problem?

To be more exactly, it is in the  PreviewClosed event that I can't catch the  true value of  HasChanges property .

2 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 23 Mar 2012, 11:42 AM
Hi there,

What I would suggest you is before checking your view-model to force the binding to invalidate. To do this you could check is the focus in a TextBox and if yes, to force the binding associated with the Text property to update. For more information about how to do this, please refer to this article.

Hope this helps.

Kind regards,
Miroslav Nedyalkov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
xu
Top achievements
Rank 1
answered on 23 Mar 2012, 04:16 PM
That helps a lot, thanks.
Tags
Window
Asked by
xu
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
xu
Top achievements
Rank 1
Share this question
or