Tuesday, February 12, 2013

Send list items to recycle bin

Let us see what happens when one deletes the list items. See the example below. I have few task list items.

And see the code below.

execute the code and check recycle bin of the site.

You will not find these deleted list items.

Let's add three more items and this time select three items and remove from the delete option from UI,

now go to the recycle bin and now you can see these three entries.

let's add three more items.

Let's change code a little.

run the code and the go to recycle bin. There you go, now you have the items in recycle bin which was deleted rather recycled programmatically.


No comments:

Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com