.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Customizing ECB dynamically on SharePoint 2010

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :SharePoint


on SharePoint 2007, I was able to dynamically build whole custom menu, by using javascript during clicking event using function Custom_AddDocLibMenuItems(m, ctx) located in core.js (yes, I made my customCore.js and referenced it in masterpage), then inside that function I was invoking web service or something similar, that would calculate available actions defined by complex business logic ( usually current user combined with several attributes on selected item, against configuration stored in lists, ...).The effect would be that the context menus were 100% generated by me, according to needed business rules (permissions are not enough to calculate actions displayed in my scenario).

Now on SharePoint 2010, I am unable to get that effect using the same technique. Even more, simple forcing of not displaying default actions does not work, like this code is completely ignored.

Is there a new logic needed to accomplish this? Am I missing some trivial change?

Please help me, since I am really stuck here :/

View Complete Post

More Related Resource Links

Using HttpModule to change master page dynamically on SharePoint 2010 site


I am trying to change master page dynamically on SharePoint 2010 site. I reviewed some documents (SharePoint: Dynamically Change Master Page: http://ranaictiu-technicalblog.blogspot.com/2009/10/sharepoint-dynamically-change-master.html) and I implemented IHttpModule, added it to GAC, modified web.config(safecontrol, httpmodule, module)
It works good! But I found some problems
1.Never catch the PreInit event for publishing pages
2."/_Layouts/RedirectPage.aspx" page occurred error
3.ContextMenu did not work

using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.UI;
using Microsoft.SharePoint;
using System.Configuration;
using Microsoft.SharePoint.ApplicationRuntime;

namespace MasterUtilModule
    public class MasterModule : IHttpModule
        public void Dispose() { }
        public void Init(HttpApplication context){

Customizing SharePoint List Forms in InfoPath 2010

Learn how to customize the forms for viewing and editing items in a SharePoint list with the InfoPath Designer, and then take the forms offline using SharePoint Workspace.

Sample: Customizing SharePoint List Forms in InfoPath 2010

Explore the code sample as you learn to customize the forms for viewing and editing items in a SharePoint list with the InfoPath Designer, and then take the forms offline using SharePoint Workspace.

Customizing the SharePoint 2010 Blog Template


I want to apply branding to a sharepoint 2010 blog site which is a sub site of our internet. I'm trying to achieve this by creating a custom blog site template based on the original blog site template. So I followed the following blog post.


And I got a copy of the blog template files from "C:\...\14\TEMPLATE\SiteTemplates\blog", modified the files and put in to the "SiteTemplates\<custom template name>" folder.

I can see a new site template has been created but every time when I create a web site based on my custom template it uses the original blog template files for provisioning (for ex: default.aspx).

Is this the correct way to achieve this? Please let me know if I'm doing sth wrong here.

Thanks in advance.


Customizing and Extending the SharePoint 2010 Server Ribbon

Learn about the components that make up the SharePoint 2010 Server ribbon and how to customize the ribbon by walking through two ribbon customization scenarios.

Video: Creating and Customizing Document Sets in SharePoint Server 2010

Watch this visual how-to video as you learn to create document sets by using Visual Studio 2010 instead of by using the browser-based user interface.

Creating and Customizing Document Sets in SharePoint Server 2010 (Visual How To)

Learn to create SharePoint Server 2010 document sets by using Visual Studio 2010 instead of by using the browser-based user interface.

Customizing The Display Form in SharePoint Designer 2010


I have an interesting problem.  I have a need to hide a particular field on a listform.  I believe I can do it using conditional formatting and using the IfHasRights function.  I would then put in the number 16, which is the ApproveItems permission.  The problem I am running into is when I create a  new Display form.  On the custom list I have a few lookup fields that pull data from other lists on the same site.  This all works well in both the new and edit forms.  I customize or create a new Display form then set that form as the default.  When I open a list item, I see the URL to the lookup list rather than the value. 

For example, I have a lookup field for Region.  The region was set to "western" when the list item was created.  When I am viewing the list item, rather than seeing "western" I see <a href="http://<SITE COLLECTION URL>/listform.aspx?PageType=4&ListId={369791AE-A520-466F-87ED-D1006D6D4679}&ID=2&RootFolder=*">Western</a>.

Has anyone else seen this?  It happens both when I create a new display form and when I edit an existing form.  I can do what is necessary on the edit and new forms, but the display form is giving me fits.

Thank you in advance for any assistance you can give me.

Short Overview of SharePoint Features in Visual Studio 2010

As you probably know, Visual Studio 2010 was announced earlier this week and it contains a lot of cool features and project templates for SharePoint developers. Below is a short overview for some of the SharePoint development related features and project templates.

How to get more information about the exceptions that can happen in SharePoint 2010 projects?

In case there is an exception anywhere in the SharePoint 2010 project (most common place an exception would happen is during deployment of your SharePoint project, custom deployment configuration or custom deployment steps), there's a registry key EnableDiagnostics available for you to use.

InfoPath 2010 cannot connect to SharePoint 2010

You have installed Office 2010 beta and you are trying to connect to SharePoint 2010 from InfoPath but you get an error

Installing and configuring SharePoint 2010

The following steps show how to install SharePoint 2010 on VMware workstation 7.0. Host computer used during the preparation of this walk-through was a Vista (32-bit) machine and guest machine used was VMware workstation 7.0 with Windows Server 2008 Service Pack 2 (64-bit).

Content Query Web Part missing in SharePoint 2010

If you don't see content query web part listed in the web parts list, this is because you have not enabled "Search Server Web Parts" feature in site collection features. Enable this feature and content query web part will show in the list of web parts.

Developing on SharePoint 2010 Intro Tutorial

Folks, this is a exciting news for SharePoint Geeks that the availability of Developing on SharePoint 2010 Tutorial can be access here.

Accessing SharePoint 2010 Data with Server-Side APIs

Accessing SharePoint data in server-side solutions is one of the most common tasks that you will perform as a SharePoint developer. SharePoint 2010 provides powerful server-side APIs that enable you to retrieve, add, edit, and delete SharePoint data programmatically. SharePoint 2010 also includes the new LINQ to SharePoint technology that enables you to work with SharePoint data efficiently and easily.

What Developers Need to Know About SharePoint 2010

Visual Studio 2010 integrates with SharePoint much more closely than in previous versions. Visual Studio 2010 includes SharePoint-specific project types and project item types, and includes powerful packaging, deployment, and debugging features that help increase your efficiency as a SharePoint 2010 developer.

Creating Dialogs and Ribbon Controls for SharePoint 2010

SharePoint 2010 provides new user interface components, such as server ribbons, and the new dialog platform. As a developer, you can create controls for the server ribbon and dialog boxes for the dialog platform.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend