Tag Info

Hot answers tagged

4

That's actually a User Control called Welcome menu <%@ Register TagPrefix="wssuc" TagName="Welcome" src="~/_controltemplates/Welcome.ascx" %> The menu items can be observed by opening C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx


2

Create the property as a dropdown box and the Personalization scope should be PersonalizationScope.User. Sample code might look like below. public enum UserColor { Blue = Blue, Green = Green, Yellow = Yellow } private ItemCount uColor= UserColor.Blue; ...


2

I have now discovered why I couldn't save the custom properties in the GUI. I was closing the Current Web Object from the SPContext. Apparently this should not be done as it's handled by the framework. Once I removed my CurrentSite.Dispose() from my finally in the webpart user control, I was able to properly save the custom properties.


2

SharePoint 2010 ribbon doesn't have anything in common with 2007's DisplayFormToolBar. The custom action Location attribute should be set to "CommandUI.Ribbon" for adding something to ribbon. Then, you should provide special XML for button. Since SP2010 ribbon is a client-side thing, no C# code is involved here. You can find a simple example of adding a ...


1

To reset the personalisation you simply need to call a JavaScript on that button. javascript:SP.SOD.execute('browserScript', 'MSOWebPartPage_RestorePageDefault') When the user clicks the button he will be asked to reset the personalisation. Once the user confirms this the personalisations are gone.


1

Refer the following links, http://office.microsoft.com/en-in/office365-sharepoint-online-enterprise-help/manage-personal-and-social-features-HA102772280.aspx How to delete a my site for a single user - SharePoint 2013 on premises To delete using powershell, use the following code #PowerShell Script - Delete All Users Personel Sites - SharePoint 2010 ...


1

After some experiments, here is seems-to-work solution : var web = SPContext.Current.Web; var mgr = web.GetLimitedWebPartManager(file.ServerRelativeUrl, System.Web.UI.WebControls.WebParts.PersonalizationScope.User); var wpFile = web.GetCatalog(SPListTemplateType.WebPartCatalog).RootFolder.Files["somewebpart.webpart"]; /* Elevated the process just for ...


1

Web Part properties with PersonalizationScope=PersonalizationScope.User have the possiblity of storing that setting for individual users as well as for shared. BUT the individual value is only set when editing the web part after selecting Personalize this page and the indivual value is only used when the page containing the web part is in Personal view. ...


1

Develop the code as described by @Deepu. When you add the web part to a WebPart Page (NOT a wiki page) the users have the option of going to the hidden personal menu and select Personalize this Page and then edit the web part. The only properties they can edit in this mode are the User scoped ones and they only modify them in their personalized view


1

I think you have complicated your solution :) Firstly, btnSubmitZipCode_Click will get executed after Page_Load. there is no need to use the "ParentWebPart" property. If you want remove the ability to change the option in "Edit Webpart" you don't need the property pZipCode. Simple solution would be : Seperate the Webservice call which might include ...



Only top voted, non community-wiki answers of a minimum length are eligible