Determine if a field is dirty or not

Thread is closed for posting
5 posts, 0 answers
  1. Josh
    Josh avatar
    12 posts
    Member since:
    Aug 2008

    Posted 01 Sep 2009 Link to this post

    Is it possible to look at an object before it is saved to the database and determine which fields are dirty and which are not?

    Thanks!

    Josh
  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 04 Sep 2009 Link to this post

    Hello Josh,

    Unfortunately this is not possible at the moment. A possible workaround is to use the ITracking events of the object scope and manually track the dirty fields. This help topic might help you to implement the custom logic.

    Regards,
    Alexander
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. lkeel
    lkeel avatar
    115 posts
    Member since:
    Jul 2012

    Posted 08 Sep 2009 Link to this post

    Is this something that is on the road map?
  4. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 10 Sep 2009 Link to this post

    Hello lkeel,
    I have just implemented it.

    scope.IsDirty("FieldName") will be available with the next custom build or service pack.

    Kind regards,
    Jan Blessenohl
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. lkeel
    lkeel avatar
    115 posts
    Member since:
    Jul 2012

    Posted 10 Sep 2009 Link to this post

    That is GREAT news.  Thanks for the effort!!

    -LK
Back to Top