Recently one of our customers asked me why not integrate the SharePoint built-in context menu into SPListTreeView web part.
We really want to integrate the SharePoint built-in context menu. After all, this can aviode thousands of lines of code, so why not? In fact, like other similar web parts, we had done so in the first version of the SPListTreeView web part.
But shortly afterwards, we found it was not a good idea because of obnoxious reloading and redirecting pages. For example, after “Edit in XXX” menu item was clicked and the document has been saved, the whole page will be reload. Other menu items, such as “Create Document Workspace” and “Manage Permissions”, have the similar issues, in these scenarios, users will be redirected to a different page.
For our Ajax-based web part, SPListTreeView, this is completely unacceptable. That’s why we discard integrating the “handy” SharePoint context menu.
To be continuted…