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

Determine if a field is dirty or not

4 Answers 139 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Josh
Top achievements
Rank 1
Josh asked on 02 Sep 2009, 03:37 AM
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

4 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 04 Sep 2009, 10:31 AM
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.
0
lkeel
Top achievements
Rank 1
answered on 08 Sep 2009, 03:42 PM
Is this something that is on the road map?
0
Jan Blessenohl
Telerik team
answered on 10 Sep 2009, 12:24 PM
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.
0
lkeel
Top achievements
Rank 1
answered on 10 Sep 2009, 01:05 PM
That is GREAT news.  Thanks for the effort!!

-LK
Tags
General Discussions
Asked by
Josh
Top achievements
Rank 1
Answers by
Alexander
Telerik team
lkeel
Top achievements
Rank 1
Jan Blessenohl
Telerik team
Share this question
or