<CustomAction
Id="DialogDemo"
RegistrationType="List"
RegistrationId="101"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.Documents.New.Controls._children">
<Button
Id="Ribbon.Documents.New.Controls.Demo_Dialog"
Alt="Dialog Ribbon Button"
Sequence="30"
Image32by32="/_layouts/images/PPEOPLE.GIF"
Command="Demo_Dialog"
LabelText="Dialog Demo"
TemplateAlias="o2"/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="Demo_Dialog"
CommandAction="javascript:
var options = SP.UI.$create_DialogOptions();
options.url = 'http://shalvin/Shalvin/Lists/Contacts/AllItems.aspx';
options.width = 800;
options.height = 600;
SP.UI.ModalDialog.showModalDialog(options);"/>
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
Friday, August 17, 2012
Dialog Framework With SharePoint 2010
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment