惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Jina AI
Jina AI
H
Help Net Security
月光博客
月光博客
Y
Y Combinator Blog
I
InfoQ
博客园 - Franky
W
WeLiveSecurity
The Register - Security
The Register - Security
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Blog — PlanetScale
Blog — PlanetScale
H
Hacker News: Front Page
L
LangChain Blog
S
Security @ Cisco Blogs
Hacker News - Newest:
Hacker News - Newest: "LLM"
罗磊的独立博客
V2EX - 技术
V2EX - 技术
H
Heimdal Security Blog
博客园_首页
SecWiki News
SecWiki News
N
News and Events Feed by Topic
B
Blog RSS Feed
S
Secure Thoughts
TaoSecurity Blog
TaoSecurity Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
AI
AI
Google Online Security Blog
Google Online Security Blog
MongoDB | Blog
MongoDB | Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
WordPress大学
WordPress大学
小众软件
小众软件
The Last Watchdog
The Last Watchdog
J
Java Code Geeks
PCI Perspectives
PCI Perspectives
博客园 - 聂微东
N
News | PayPal Newsroom
Schneier on Security
Schneier on Security
Help Net Security
Help Net Security
Martin Fowler
Martin Fowler
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42
博客园 - 司徒正美
Forbes - Security
Forbes - Security
酷 壳 – CoolShell
酷 壳 – CoolShell
S
Security Affairs

博客园 - 心利

DocOptimizer 0.9.0 Beta Released SharePoint GroupedItemPicker Control Drag & Drop between SharePoint Document libraries Improving SharePoint User Experience With JQuery-Client Side Form Validate SharePoint How To:定位错误:“An SPRequest object was not disposed .." SharePoint Tips and Tricks --如何用JS向PeopleEditor填充数据 使用T4为数据库自动生成实体类(C#) (Tips&Tricks)用客户端模板精简JavaScript代码 (Tips &Tricks)如何为Windows Mobile 创建拨号连接--C# System.Xml FAQ Part 1 Windows Ce vs Windows Mobile Asp.net程序中生成Excel报表 My Page StartKit项目概览 做一个更好的程序员 .Net类库中实现的HashTable 为Asp.net控件写单元测试(ViewState) 使用Control Adapters优化Asp.net控件 ViewState 简述一(With Example And Apply to Asp.net) 桌面背景:rss新闻阅读器(图)
SharePoint Tips and Tricks -- Ribbon,People Editor
心利 · 2011-09-22 · via 博客园 - 心利

Ribbon

How To在非"Application Page"页面上添加Ribbon Tool Bar?

需要在Head部分添加Ribbon控件

<head id="Head1" runat="server">

<SharePoint:SPRibbon ID="SPRibbon2" runat="server" PlaceholderElementId="RibbonContainer" CssFile="">

<SharePoint:SPRibbonPeripheralContent runat="server" Location="TabRowRight" ID="SPRibbonPeripheralContent1" CssClass="s4-trc-container s4-notdlg" ></SharePoint:SPRibbonPeripheralContent>

</SharePoint:SPRibbon>

How To 在"Application Page"上添加Contextual Tab?

1 ContextualGroup添加Command属性

<ContextualGroup Color="Magenta" Command="CustomContextualTab.EnableContextualGroup" Id="Ribbon.CustomContextualTabGroup"

Title="Custom Contextual Tab Group"

Sequence="502"

ContextualGroupId="CustomContextualTabGroup">

2 在您自定义的PageComponent中处理ContextualGroup相关的Command.

例如上文中的ContextualGroup,您需要在getGlobalCommands方法返回的命令数组中,包含"CustomContextualTab.EnableContextualGroup",并在canHandleCommand返回True.

People Editor

How To JavaScriptPeopleEditor控件赋值?

function setPeoplePicker(pickerid, value) {

var field = $("#" + pickerid);

if (field.find('.ms-inputuserfield:visible').length > 0) {

// IE

var userlist = field.find('.ms-inputuserfield').html();

field.find('.ms-inputuserfield').html(userlist+";"+value);

field.find('img:first').click();

} else {

// FF

var userlist = field.find("textarea:first").val();

field.find("textarea:first").val(userlist + ";" + value);

}

}

$(document).ready(function () {

setPeoplePicker("<%=MyPeopleEditor.ClientID%>", "CustomValue");