Questions tagged [delegate-control]

A class of the Microsoft.SharePoint.WebControls namespace, DelegateControl is a generic control that is able to render an ASP.NET control. Delegate controls make their child candidate controls pluggable and replaceable.

Filter by
Sorted by
Tagged with
1 vote
1 answer
61 views

Delegate control in master page applies to sub sites which are not using same master page

I have created a master page in which I have used delegate control to add custom navigation. On the parent site, everything is working fine. But when I am creating a new subsite, by default that ...
Rahul Gokani's user avatar
  • 1,064
1 vote
2 answers
127 views

TryGetList damages view with Lookup field

We've recently run into very strange issue: Calling spWeb.Lists.TryGetList("blaBlaBLa"); from DelegateControl code is causing the view containing cross site lookup field to crash. More details: We ...
Serhiy's user avatar
  • 379
0 votes
1 answer
147 views

Is it possible to add a condition class to the master page?

I want to add the class ms-hideto the body of my master page depending on certain conditions. I'm trying to do something like delegate controls where, based on a feature I add or remove this class ...
Batman's user avatar
  • 1,438
0 votes
1 answer
344 views

SharePoint Online "Delegate Control" Implementations

Are sandboxed solution custom actions and javascript the best way to replicate the old on-prem functionality of delegate controls? I know sandboxed solutions with code aren't a possibility in SPO ...
kduenke's user avatar
  • 65
1 vote
0 answers
66 views

Problems with SharePoint DelegateControl

We have created a Delegated control for People Picker. Implementation Details: We have a ascx control which is using jquery Select2 plugin. This control is calling some webservice to get details. ...
Mohit's user avatar
  • 810
0 votes
0 answers
440 views

Creating a new search box via a delegate control

We have a sharepoint site where the main home page is branded using our custom masterpage. Some of the subsites don't use the custom masterpage and instead use seattle. Initially when I created the ...
C. Poulain's user avatar
2 votes
1 answer
1k views

Using Top Navigation Snippet with Current Navigation Term Sets to Get a Static Current Navigation Menu

I've seen a few posts asking similar things but nothing I can use. I am working with a SharePoint 2013 publishing site with custom master pages and layouts. I have a vertical navigation which shows ...
cptasker's user avatar
1 vote
1 answer
285 views

Access denied on other users mysite after deploying delegate control

I created a delegate control and deploy it on all existing my sites. When I go to my own mysite the delegate control is working fine. When I go to the mysite of someone else I got an access denied. I ...
Ola's user avatar
  • 4,395
2 votes
1 answer
272 views

How to create a feature stapler for all webtemplates?

I have created a delegate control and try to provision it to all new site collections. It is working now only for the web template "MySite". How to make it possible to provision this feature for all ...
Ola's user avatar
  • 4,395
1 vote
0 answers
57 views

How to implement a delegate control for only the mysites?

I created a delegate control and it works fine. I add it to the AdditionalPageHead. Now it is visible on all Master Pages. I would like to make it only visible on the My Sites. How to do this without ...
Ola's user avatar
  • 4,395
0 votes
1 answer
52 views

How to deactivate the delegate control feature after its first load?

I have created a delegate control and it works fine. Inside this delegate control I add a webpart to the welcome page. Thats it! After this action I would like to deactivate the delegate control ...
Ola's user avatar
  • 4,395
0 votes
2 answers
3k views

How to create a delegate control for the existing placeholder "AdditionalPageHead"?

I am using sp 2013. I would like to create a delegate control to be visible in the masterpage of the mysites. I do not want to edit the masterpage because it needs to stay OOTB. I would like to use ...
Ola's user avatar
  • 4,395
0 votes
2 answers
1k views

How to trigger some custom c# code when a new site collection is created? Feature Stapling, delegated control?

I am using sp 2013. I have some custom code which is adding some webpart to the welcome page. I would like to execute this code for each new site collection depending on a template (mysites). Someone ...
Ola's user avatar
  • 4,395
1 vote
1 answer
110 views

Where does the HTML in SharePoint Online Master Page's DelegateControl come from?

Our SharePoint Online Master Page is using this code: <SharePoint:DelegateControl runat="server" ControlId="PageHeader" AllowMultipleControls="false" /> To display the "PageHeader" with the ...
jmbmage's user avatar
  • 151
0 votes
2 answers
1k views

Cannot get ribbon button by Id through Javascript

I've got a delegate control which persists a customAction Tab onto every page of my host web. In the same Delegate control file, I reference a javascript file which I want to use to hide specific ...
dafyddPrys's user avatar
0 votes
1 answer
357 views

Load multiple controls to a AdditionalPageHead

I have 2 script files which I want to add to a site. I might add none, either of two or both. Is there a way to do so by overriding the delegate control AdditionalPageHead? Currently, I have 2 ...
Saksham's user avatar
  • 434
1 vote
0 answers
34 views

Multiple AdditionalPageHead overloads

I have a requirement where I have 6 different jQuery snippets which I have included in 6 different user controls. And I have 6 different features which override the delegate control with these 6 ...
Saksham's user avatar
  • 434
2 votes
1 answer
490 views

Add promoted actions at the end

I am overriding PromotedActions and am adding a few custom links to it. The problem is, despite of setting the sequence number to 1000000, the links are still coming at the beginning. How can I ...
Saksham's user avatar
  • 434
1 vote
0 answers
45 views

Use a Delegate Control on a content page

I created a delegate control which compares the address a user linked from (HttpContext.Current.Request.Path) and if it is correct, I provide a link to a given url. I would like to use this in a ...
Sean's user avatar
  • 404
0 votes
1 answer
2k views

PublishingWebControls EditModePanel do not work in production environment - can't recieve css file when pagemode edit

<%@ Register TagPrefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=...
Plexus81's user avatar
  • 2,250
0 votes
2 answers
964 views

I need help in adding a web control to a page layout

I am trying to follow the steps described inside the following link , which mainly require adding a web control and then reference it from a page layout:- http://www.itidea.nl/index.php/what-about-...
John John's user avatar
1 vote
0 answers
202 views

how to add WebControl to my page layout

I want to add the following code to my page layout to fix a bug in SharePoint 2013:- [ToolboxData("<{0}:CustomValidationRequiredFieldsOnPage runat=server></{0}:...
John John's user avatar
1 vote
2 answers
325 views

asp button not showing up in delegate control

I hope someone will able to help me on this. I have created a empty element file where I am referring a user control which has a asp button control and I am adding this user control to ...
user avatar
4 votes
5 answers
9k views

Removing top links from Sharepoint online team site

The whole day yesterday I have been trying to follow the instructions from MSDN to hide the top links in a SharePoint team site (SharePoint Online in Office 365). However, I can not get it to work. ...
Kerry's user avatar
  • 41
1 vote
2 answers
1k views

SharePoint 2013 - Deploying Custom Delegate Controls

I can't figure out how to active custom delegate controls on my SharePoint 2013 site. I've created two custom delegate controls: SuiteBarBrandingDelegate and SuiteLinksDelegate I then published them ...
mp42871's user avatar
  • 173
1 vote
0 answers
284 views

How can I set a WP User control into the nav place holder?

I've created a WebPart with a TreeView control that output every list view of a SpWeb site. So, I'm intending to set it up into the v4.master NAV zone. Replacing default one. I found a nice feature ...
hello B's user avatar
  • 681
0 votes
1 answer
268 views

Additional page head delegates with 2 scripts

I have a question regarding the additional page head delegate control. Basically this delegate controls helps to register some scripts in my case. But i have 2 different additional page head delegate ...
Shkipper's user avatar
  • 2,103
1 vote
2 answers
1k views

uncheck the checkbox for overwriting a document by default in sharepoint 2013

We are trying to remove the checkbox which appears when uploading a new document in SharePoint (we are using 2013). By default this is checked. We would like it to be unchecked by default. I have ...
mark's user avatar
  • 11
2 votes
1 answer
782 views

Delegate Control SiteMapDataSource throws error

We have a solution with WSP package. This contains set on Delegate Controls. I want to use one of the Delegate Control with multiple parameters. Hence, I have copied that code related to that and ...
Ram's user avatar
  • 439
10 votes
1 answer
150 views

Delegate control behind of the scene

We all know about delegate controls and steps that should be done to use it, but what SharePoint exactly do in time when we activate feature? It looks like it creates a copy of control's declaration, ...
Alexander's user avatar
  • 8,149
1 vote
0 answers
73 views

render MyGlobalNavigationFixup conditionally

I have created a single GlobalNavigation delegate control that displays different markup based on a condition (code below shows only the negative condition, an over simplified version). The ...
scbowen's user avatar
  • 21
6 votes
3 answers
10k views

adding link to suite bar in sharepoint 2013

I have followed the following liks to add custom links to sharepoint 2013 suite bar. Link http://www.learningsharepoint.com/2013/02/10/addremove-links-in-top-suitebar-skydrivesitesnewsfeed-in-...
SPBeginer's user avatar
  • 2,537
2 votes
0 answers
265 views

Create submenu item on Ribbon's Splitbutton

I just want to know if it's possible to add submenu on a custom splitbutton by using a delegate control. I know that the normal way is to use javascript function to create the submenu xml. But I was ...
LoKtO's user avatar
  • 21
4 votes
1 answer
250 views

Define a new custom DelegateControl tag and ControlId?

I would like to add a new custom-defined DelegateControl to the bottom of my MasterPage so that I can install Google Remarketing markup to the bottom of all my pages with a Feature. I already have the ...
vynsane's user avatar
  • 141
0 votes
3 answers
83 views

How to build a complex feature to collect and store user options that drive a delegate control

A long title but hopefully will be enough! Basically, I want to create a feture in Visual Studio that will do the following: When activated, places an option/link in the site collection options in ...
spevilgenius's user avatar
  • 1,341
2 votes
1 answer
983 views

Overriding Tree View Data Source in v4.master

I am implementing some custom navigation providers for SharePoint 2010, and have successfully overridden the data source for the Top Navigation and Quick Launch providers using the delegate provided ...
Adam M.'s user avatar
  • 147
0 votes
2 answers
6k views

Adding multiple controls to AdditionalPageHead

My question is regarding the delegate control AdditionalPageHead, as we know it allows multple controls to be loaded. My questions are: How to add multiple controls? I want that the different ...
Shkipper's user avatar
  • 2,103
0 votes
0 answers
40 views

Custom delegate is applied even if the feature is deactivated

I have a question regarding a feature. Situation: I have a feature that is farm scoped, with this feature I deploy a delegate control (xml file), this file refers to cs code. So I've added that file ...
Shkipper's user avatar
  • 2,103
1 vote
0 answers
240 views

Changing / overwriting OOTB javascript

I've came across an issue when I was modifying / customizing the mini social tag buttons (a delegate control - class), everything went good and well untill I encountered an issue "onmouseover" event. ...
Shkipper's user avatar
  • 2,103
2 votes
1 answer
2k views

Delegate control with class.cs

I searched on google for some clarifications but I didn't find the answers I've been looking for. I want to deploy a delegate which would perform some custom functionality. That is why with a ...
Shkipper's user avatar
  • 2,103
1 vote
1 answer
4k views

Customizing SmallSearchInputBox default text

I am trying to customize the text displayed in the search box of my SharePoint site. The default is "Search this site...". I found a number of articles which explain how to do it (by overriding the ...
Hugo Migneron's user avatar
5 votes
3 answers
4k views

How can I implement SharePoint JSGrid filtering and grouping functionality?

I am working on SharePoint JSGrid. I am able to implement the sort functionality in JSGrid. Now I want to implement the grouping and filtering in my custom JSGrid. For filtering we have to attached ...
Basant B. Pandey's user avatar
1 vote
0 answers
330 views

Using a Delegate Control to add content into the body of the page without javascript

Is there a way to use a delegate control targeting "AdditionalPageHead" to add a control into the body of the page without resorting to javascript? The solution can't involve javascript as the control ...
JonTheNerd's user avatar
3 votes
3 answers
4k views

How can I enable JavaScript on every page at a site level?

I'm using SharePoint 2007 and I would like to add the JS code for Google Analytics into the master page. I think a Delegate Control is the way to go, as we already have a Delegate Control in the Head ...
Ronak's user avatar
  • 359
0 votes
1 answer
373 views

I can't find the GlobalNavigation WebPart

I wan't to modify the MySite GlobalNavigation WebPart to customize the title in the top left corner. I can find there is a delegate control in the master page but I can't find this control anywhere... ...
cocoggu's user avatar
  • 281
1 vote
4 answers
1k views

How to embed a CQWP into a master page or DelegateControl

I'm looking for a way to embed a pre-configured Content Query Web Part into a master page. In short, I have a SharePoint:DelegateControl on the master page and I want to plug the web part into it by ...
Zack's user avatar
  • 113
0 votes
1 answer
75 views

Catch click event in another file

I have this .aspx which has a few checkboxes and textboxes and a submit button. Using a delegatecontrol, I add some external textboxes to that page. Now, what happens when I click the submit button ...
user avatar
0 votes
2 answers
211 views

Add content to a masterpage placeholder in a specific site template

I have a master page which is a customized copy of v4.master. I want to add some content to a the placeholder called PlaceHolderQuickLaunchBottomV4: <SharePoint:UIVersionedContent UIVersion="...
Anatoly Mironov's user avatar
1 vote
2 answers
1k views

User's Recently Visited Sites

Anyone have any advice on the best way of tracking the recent sites a user has visited? As part of my overridden Global Navigation delegate control, I'd like to create something similar to a ...
andrew.petersen15's user avatar
3 votes
1 answer
299 views

Know all Delegate Controls

I am wondering if there is any way to find a list all deletage controls which exist on SharePoint Root group by ControlID and Ordered by Sequence. How does sharepoint locate the control with lowest ...
Ashish Patel's user avatar
  • 11.4k