DataForm and IDataErrorInfo

5 posts, 0 answers
  1. Armin
    Armin avatar
    5 posts
    Member since:
    Nov 2010

    Posted 07 Sep 2011 Link to this post

    Hello,
    is it in some way possible that RadDataForm uses the IDataErrorInfo interface to validate user input and to show the according error messages?

    Regards
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 09 Sep 2011 Link to this post

    Hello Armin,

    I have prepared an exaple project that illustrates such a scenario. I am attaching it for your reference.

    Greetings,
    Ivan Ivanov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Patrick McBride
    Patrick McBride avatar
    3 posts
    Member since:
    Jul 2009

    Posted 01 May 2013 Link to this post

    Do you have an example solution for RadDataForm and IDataErrorInfo in WPF?  I cannot get the errors to display.  Works with RadGridView but not RadDataForm. The "public string this[string columnName]" get is never called when the collection is attached to the RadDataForm.

     

     

     

     

  5. Patrick McBride
    Patrick McBride avatar
    3 posts
    Member since:
    Jul 2009

    Posted 01 May 2013 Link to this post

    Nevermind.  It does work in WPF.  Needed the binding to be setup like:

    {Binding Name, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}



    Was missing the ValidatesOnDataErrors.  This is not mentioned in the documentation.  Thanks.
  6. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 07 May 2013 Link to this post

    Hello,

     Thank you. We will update the respective articles in the documentation.

    Kind regards,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
UI for WPF is Visual Studio 2017 Ready