I have a RadGrid with Sqldatasource. Is there anyway to implement some sort of auditing mechanism? Perhaps a shadow copy of the modified table that contains a list of the changes and all legacy instances of the rows?
Thanks,
Mark
2 Answers, 1 is accepted
0
Konstantin Dikov
Telerik team
answered on 14 Mar 2014, 01:47 PM
Hello Mark,
Since you have not specify the exact requirement that you have and what you want to accomplish, I could only assume that you want to log the changes performed in the grid by each user.
Please note that RadGrid does not have such built-in functionality, but you can handle the server-side OnUpdateCommand, OnInsertCommand and OnDeleteCommand events, get reference to the edited item through the event arguments (e.Item) and use the values in that item for your log.
Thanks for the reply! I actually just began implementing functionality similar to that where I have my own custom sql commands that insert data from the table. Sort of a shadow copy where I grab the dataitem text and insert it into the audit table.