New answers tagged spcontext
1
finally this solve my problem
i enhanced "Andrew" script to make full functional.
ExecuteOrDelayUntilScriptLoaded(OverrideMenuHtc_show, "core.js");
var _MenuHtc_show;
function OverrideMenuHtc_show() {
_MenuHtc_show = window.MenuHtc_show;
window.MenuHtc_show = function (m, r, fr, ft, yoff) {
_MenuHtc_show(m, r, fr, ft, yoff);
var ...
2
What about that?
$('.s4-ctx').css('display','none');
It will hide buttons that show context menu.
If you need to hide context menu only from web part with specified id you need to use:
$("div[webpartid='85c13a33-57a3-456b-a19b-c68c97756184'] .s4-ctx").css('display','none');
If you want to remove menu item, for ex. "Alert Me" add this script that ...
2
Any reason why you are not using a HideCustomAction?
Here is the MSDN for that.
And here is a resource for finding the correct groups
Top 50 recent answers are included
