CollectionEditor - perform validation using IDataErrorInfo

3 posts, 1 answers
  1. Joel
    Joel avatar
    53 posts
    Member since:
    Sep 2013

    Posted 02 Sep Link to this post


        The validation is working alright with viewmodel bound to PropertyGrid. But it is not working when it is bound to CollectionEditor. (See attached picture)

        Can you share some example on how to do that? 

  2. Answer
    Dilyan Traykov
    Dilyan Traykov avatar
    371 posts

    Posted 06 Sep Link to this post

    Hello Joel,

    The desired behavior can be achieved by creating an attached property and handling the AutoGeneratingPropertyDefinition event of the RadPropertyGrid inside the CollectionEditor.

    I'm attaching a sample project to demonstrate this. Please have a look at it and let me know whether such an approach would work for you.

    Dilyan Traykov
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Joel
    Joel avatar
    53 posts
    Member since:
    Sep 2013

    Posted 06 Sep in reply to Dilyan Traykov Link to this post

    Hi Dilyan,

      Thanks for the sample project. It is working !

Back to Top