7

I have a custom Sharepoint 2013 list with event receivers attached to it (adding, updating, deleting).

However, it looks like the event receivers are not triggered when the user is adding/editing in quick edit mode/grid edit mode, e.g. when the content of the list is edited as if it was Excel.

The event receivers work fine when editing/adding through the regular forms.

How do I get SharePoint 2013 to trigger event receivers when the user is editing through the grid edit mode?

  • Apparently, no one is looking at this, but Workflow Item Created events are not firing (i.e. workflows that run on item created are not starting) either if a new item is added via quick edit. Very annoying. – user17195 May 23 '13 at 13:57
  • @RobertLee, ok, at least its not only me. Might this be a bug in SP2013, or is there a good reason for this behaviour? – Egil Hansen May 24 '13 at 20:22
  • THe issue was fixed for 2010 only in March 2012. I wonder if 2013 considered/included this already social.technet.microsoft.com/wiki/contents/articles/… – Marius Constantinescu - MVP Oct 2 '13 at 15:18
  • To my knowledge because the DataSheet is practically asynchronous call to SP-WS, I've heard people experiencing this with Sychronous events. Would you be able to change that in your events declaration in Elements.xml file and test for Asynchronous execution? – Marius Constantinescu - MVP Oct 2 '13 at 16:47
  • thanks for the hint, this did the trick. I've changed "added" and "updated" events back to "async" and it worked like a charm. The only question is, how to get the "sync" events to run, because I have some plausibility checks in those. Would you use JSLink instead? Best Regards, Stan. – user19931 Oct 4 '13 at 14:17
1

I noticed that in SP2013 the gridview/datasheet editing is only triggering the async events (like ItemUpdated). The AfterProperties contains only fields that were changed.

When using the default editform the AfterProperties contain all fields that are on the form, even the fields that were not changed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.