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

3 posts, 1 answers
  1. xu
    xu avatar
    14 posts
    Member since:
    Feb 2012

    Posted 21 Mar 2012 Link to this post

    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. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 23 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. xu
    xu avatar
    14 posts
    Member since:
    Feb 2012

    Posted 23 Mar 2012 Link to this post

    That helps a lot, thanks.
Back to Top