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

iAuditable not firing on AutoInsert / AutoUpdate

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 05 May 2011, 03:08 PM
When using the AutoInsert / AutoUpdate functions on a RadGrid, the iAuditable method is not being called. However if I intercept the onInsert / onUpdate calls, and manually perform the Insert / Update then the iAuditable method fires correctly. I'm trying to limit the amount of code to ZERO on several simple admin screens by utilizing the base Grid Functions available, any help would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Ryan
Top achievements
Rank 1
answered on 13 May 2011, 10:52 PM
Found a solution, that allows an event capture on a DataSource.

 

        protected void DataSource_OnContextCreated(object sender, EntityDataSourceContextCreatedEventArgs e)

        {

            e.Context.SavingChanges += Entities.Entities_SavingChanges;

        }

Tags
Grid
Asked by
Ryan
Top achievements
Rank 1
Answers by
Ryan
Top achievements
Rank 1
Share this question
or