Showing posts with label Events. Show all posts
Showing posts with label Events. Show all posts

Tuesday, October 11, 2011

Ribbon Customizations and CustomActions in SharePoint 2010

In the beginning of October 2011 we did the second off-site meeting with our User Groups in Bansko (Bulgaria). Below are the slides and demo code from my presentation.


I covered the development of customizations, for SharePoint 2010 user interface, meaning custom actions, ribbon elements, notifications, statuses and dialog framework.




You could download the full Visual Studio project from here:http://db.tt/eZncKy2E


It contains an extra code for playing with bulk selection, ribbon button and modal dialog. Feel free to use it Smile


Simple ribbon button


                <!-- Simple button -->
<
CommandUIDefinition Location="Ribbon.Library.Share.Controls._children">
<
Button Id="Ribbon.Library.Share.SugbgButton"
Command="SugbgButtonCommand"
Image32by32="/_layouts/images/PPEOPLE.GIF"
LabelText="Hello SUGBG"
TemplateAlias="o1" />
</
CommandUIDefinition>


Tooltip ribbon button


                <!-- ToolTip button -->
<
CommandUIDefinition Location="Ribbon.Documents.New.Controls._children">
<
Button Id="Ribbon.Documents.New.Ribbontest"
Alt ="Test Button"
Sequence="5"
Command="RibbonTestCommand"
LabelText="Test Button"
Image32by32="/_layouts/images/QuickTagILikeIt_32.png"
TemplateAlias="o1"
ToolTipTitle="My test button tool tip"
ToolTipDescription="My tool tip description"
ToolTipShortcutKey="Ctrl-T,E"
ToolTipImage32by32="/_layouts/images/mwac_infob.gif"
ToolTipHelpKeyWord="WSSEndUser"/>
</
CommandUIDefinition>


Replace an existing ribbon button (New Folder)


                <!-- Replace a button -->
<
CommandUIDefinition Location="Ribbon.Documents.New.NewFolder" >
<
Button Id="Ribbon.Documents.New.NewFolder.MyNewFolderButton"
Alt ="Test button"
Sequence="5"
Command="MyNewFolderButtonCommand"
LabelText="New Folder"
Image32by32="/_layouts/images/menureply.gif"
TemplateAlias="o1" />
</
CommandUIDefinition>


Add ribbon button to edit form


                <!--Add a button to the edit form-->
<
CommandUIDefinition Location="Ribbon.DocLibListForm.Edit.Actions.Controls._children" >
<
Button Id="Ribbon.DocLibListForm.Edit.Actions.MySettings"
Command="EditFormButtonCommand"
Description="Go to settings"
LabelText="Site Settings"
Image32by32="_layouts/images/settingsIcon.png"
TemplateAlias="o2"
Sequence="91"/>
</
CommandUIDefinition>


All elements above are using the these handlers:



            <CommandUIHandlers>
<
CommandUIHandler Command="SugbgButtonCommand"
CommandAction="javascript:HelloRibbon();" />


<
CommandUIHandler Command="RibbonTestCommand"
CommandAction="javascript:alert('RIBBON-test was clicked');" />


<
CommandUIHandler Command="MyNewFolderButtonCommand"
CommandAction="javascript:alert('I replaced the OOB New Folder :)');" />


<
CommandUIHandler Command="EditFormButtonCommand"
CommandAction="/_layouts/settings.aspx" />
</
CommandUIHandlers>


HelloRibbon() function and related javascriptcode also could be deployed with CustomAction



    <CustomAction Id="Ribbon.Library.Actions.NewButton.Script"
Location="ScriptLink"
ScriptBlock="
function HelloRibbon()
{
alert('Hello, Ribbon Script is here!');
}
" />


Very powerful Visual Studio add-in for quick start with ribbon customizations are SharePoint 2010 Extensibility Projects and especially SharePoint Ribbon VSIX



 



Other CustomActions



    <!-- Custom Action Group in Site Settings page -->
<
CustomActionGroup
Id="MyActionGroup"
Description="This group contains all my custom actions."
Title="My Action Group"
Location="Microsoft.SharePoint.SiteSettings"
Sequence="30"
ImageUrl="/_layouts/images/mwac_textpb.gif"/>

<!--
Custom Action in Custom Action Group in Site Settings page -->
<
CustomAction
Id="MyCustomAction"
Description="This link is a custom action."
Title="My Custom Action"
GroupId="MyActionGroup"
Location="Microsoft.SharePoint.SiteSettings"
Rights="ManageWeb"
RequireSiteAdministrator="FALSE"
Sequence="20">
<
UrlAction Url="~sitecollection/_layouts/create.aspx" />
</
CustomAction>

<!--
Custom Action in Site Actions Menu -->
<
CustomAction
Id="MyNewCustomAction"
Description="This menu item is a new custom action."
Title="My New Custom Action"
GroupId="SiteActions"
Location="Microsoft.SharePoint.StandardMenu"
ImageUrl="/_layouts/images/mwac_thumbb.gif"
Sequence="10">
<
UrlAction Url="~sitecollection/_layouts/settings.aspx" />
</
CustomAction>

<!--
Adding Custom action for items in Document Library-->
<
CustomAction Id="ListMenuForMyPage"
RegistrationType="List"
RegistrationId="101"
ImageUrl="/_layouts/images/GORTL.GIF"
Location="EditControlBlock"
Sequence="105"
Title="My Page" >
<
UrlAction Url="DispForm.aspx?ItemId={ItemId}&amp;ListId={ListId}" />
</
CustomAction>


Playing with Dialogs – below is the client code which shows dialogs, using Sharepoint 2010dialog framework



<a href="javascript:showMyDialog();" id="ShaowMydialogID" style="display:inline;">
Show MyDialog
</a>


<!--Define dialog inline-->

<div id="SugbgDiv" style="display:none; padding:5px">

    <
input type="text" value="SUGBG dialog" />

    <
input type="button" value="OK" onclick="closeDialog()" />

</
div>







<!--Load Sharepoint ScriptLink-->

<SharePoint:ScriptLink ID="SPScript" runat="server" Localizable="false" LoadAfterUI="true" />







<!--Open Dialogs-->

<script language="ecmascript" type="text/ecmascript">




    var
myDialog;


    var sid;





    function showMyDialog() {


        var MyDialogDiv = document.getElementById("SugbgDiv"); MyDialogDiv.style.display = "block";





        var options = { html: MyDialogDiv, width: 200, height: 200 };


        myDialog = SP.UI.ModalDialog.showModalDialog(options);





    }





    function closeDialog() {


        myDialog.close();








</script>


You could show everything in the modal window, see how to use it to show en ExcelServices chart as image, using REST



<a href="javascript:ExcelChart();" id="ExcelChartID" style="display:inline;">
Excel MyDialog
</a>




<script language="ecmascript" type="text/ecmascript">



function ExcelChart() {
var options = { url: 'http://intranet/_vti_bin/ExcelRest.aspx/Shared%20Documents/Gears%20Sales%20History.xlsx/model/Charts(\'Chart 1\')?$format=image', width: 400, height: 400 };
myDialog = SP.UI.ModalDialog.showModalDialog(options);
}


</script>



Playing with StatusBar



<script language="ecmascript" type="text/ecmascript">



var sid;



//Status bar

function createStatusBar() {
sid = SP.UI.Status.addStatus("My status bar title", "My status bar <a href=\"#\">message<\a>", true);
}

function removeStatusBar() {
SP.UI.Status.removeStatus(sid);
}

function removeAllStatusBars() {
SP.UI.Status.removeAllStatus(true);
}

function updateStatusBar() {
SP.UI.Status.updateStatus(sid,"This is a status update");
}

function appendStatusBar() {
SP.UI.Status.appendStatus(sid,"This is appended", "This is my appended <i>status</i>");
}

function redStatusBar() {
SP.UI.Status.setStatusPriColor(sid, "red");
}

function greenStatusBar() {
SP.UI.Status.setStatusPriColor(sid, "green");
}

function blueStatusBar() {
SP.UI.Status.setStatusPriColor(sid, "blue");
}

function yellowStatusBar() {
SP.UI.Status.setStatusPriColor(sid, "yellow");
}


</script>



Notifications



<script language="ecmascript" type="text/ecmascript">



//Notifications
var notificationId;

function showNotification() {
notificationId = SP.UI.Notify.addNotification("The party has to begin after 6 hours! :)");
}

function removeNotification() {
SP.UI.Notify.removeNotification(notificationId);
}



</script>



Find the download link above to get the full VS project. Enjoy!

Sunday, April 10, 2011

The Search Story in Sharepoint 2010

 

A direct link from Windows Live

 

Saturday, April 2, 2011

SharePoint 2010-Architecture Planning from the Field

Here is my presentation from Microsoft Days 2011 (30-31 March 2011, Sofia, Bulgaria)

SharePoint 2010: Architecture Planning from the Field

and a direct link

Enjoy!

Wednesday, March 31, 2010

MS Days 10 Presentations

Here you get my presentations for MS Days 2010 (Bulgaria). They are created with Office 2010 RC Smile

ms-days-10
Office 2010 trailer

Sharepoint 2010 for Developers

ECM with Sharepoint 2010

 

Saturday, March 6, 2010

Sharepoint 2010 Ignite Wave in Bulgaria is Starting Next Week

Майкрософт България ще организира 8 Sharepoint 2010 Ignite обучения за партньори и клиенти. Първата вълна започва следващата седмица (8-ми март) в центровете за обучение на New Horizons  и СТЕМО. Очаквайте допълнителна информация за регистрацията и програмата тук и във Фейсбук сайта на SUGBG.

image

Първото обучение за IT Pro за корпоративни клиенти ще се проведе от 8 до 10-ти март, а програмата ще покрива темите:

  • Intro to Sharepoint 2010
  • Introducing Architectural Changes in 2010 (incl. HOL)
  • Services Applications (incl. HOL)
  • Business Continuity Management (incl. HOL)
  • Enterprise Search: Sharepoint Search and FAST (incl. HOL)
  • Upgrade
  • ECM Changes (incl. HOL)
  • Business Connectivity Services (incl. HOL)
  • New Social Features
  • ‘Office’ Services 2010

Съответно, обучението за разработчици за корпоративни клиенти ще бъде отново тридневно и ще започне на 16 март.

Ако желаете да се включите, изпратете E-mail на ignite@sugbg.org и ще ви изпратим информация за регистрацията.

За Sharepoint 2010 Ignite for Devlopers за партньори на Майкрософт намерете повече информация тук

Saturday, February 6, 2010

Get your MS Days 10 Registration Now

Register now for MS Days 10 and get discount. For more details: speakers and sessions (Silverlight)

 

msdays1

 

Join SUGBG at Facebook:

logo_sug

Saturday, January 23, 2010

Microsoft Days 2010

imageIt’s conferencing time, the biggest Microsoft event in Bulgaria is scheduled for 30-31 March 2010.  The registration is already opened, you can see all speakers, sponsors and exhibitors (the content is still in progress).

 

 

I shall have two presentations there:

Enterprise Content Management with SharePoint 2010 (Level: 200)
and
SharePoint 2010 for Developers (Level: 300)

Come and see also Magi’s SQL sessions! Magi achieved Microsoft Certified Master: SQL Server 2008 and I’m sure, it will be great content, emotion and fun!

fcb_msdays10

Tuesday, May 19, 2009

SUGBG (Meeting 4): MOSS Backup and Enterprice Search

When: 20 May 2009, 18:30

Where: Microsoft Bulgaria office (Sofia, Blvd.”Nikola Vaptzarov”, 55)

Sessions:

Backup scenarios for MOSS 2007

Alexander Miloev – Consultant, Microsoft Services

Enterprise Search (Part 1) - Search & User Experience

Tihomir Ignatov (me) – Senior Consultant, Microsoft Services

For more information, visit www.sugbg.org

Sunday, April 19, 2009

My Presentations @ Microsoft Days 2009 (Sofia, Bulgaria)

Here are my presentations from MS Days:

Microsoft Citizen Service Platform or how to deliver high efficient solutions for the Public sector and Business

SharePoint Development with Visual Studio 2008 (VSeWSS 1.3)

I would like to thank for the support to Paul Andrew and James Brown

Special thanks to Doncho Angelov and Alexander Miloev for the pics :-)

 IMG_7906 IMG_7914  IMG_7916 IMG_7917 IMG_7921 IMG_7924 IMG_7934 IMG_7937

Sunday, March 22, 2009

Microsoft Days 2009

The registration for MS Days 2009 is opened. This year it will consist of two sub events – for IT Pro (14-15 April) and for Developers (16-17 April).

I’ll have sessions in both tracks:

Microsoft Citizen Service Platform or how to deliver high efficient solutions for the Public sector and Business

(IT Pro Track, 14 April 2009, 11:45 – 12:45)

 

Sharepoint Development with Visual Studio 2008

(Dev Track, 17 April 2009, 15:15 - 16:15)

 

Check the agenda for both (IT Pro and Dev) tracks! Reseve your seat now, come and listen!

Pay attention, the registration site is realized in Silverlight!

Sunday, February 15, 2009

SUGBG (Meeting 3): Internet Sites with WSS 3.0

The next meeting of SUGBG is scheduled for 25 February.

Elena Troyanska and Kanio Dimitrov (they are developers at BSH) will speak about Windows Sharepoint Services 3.0, and how can be used for internet facing sites. They will show and describe the implementation and architecture of “Sofiyska voda” web portal.”Sofiyska voda” maintains, operates and develops the water and sewerage system of Sofia city and it is one of the biggest utilities companies in Bulgaria. For more details visit www.sugbg.org and http://www.sofiyskavoda.bg/en/about/ourbusiness.aspx

Register yourself for this event in Facebook

SUGBG in Facebook

Download the presentations:

The screencast video is here [wmv, 73 mb]

Wednesday, January 14, 2009

SUGBG 2-nd Meeting Details

The second meeting of SharePoint User Group Bulgaria had again 60 visitors and the hall was overfilled. The speakers Robert, Didi and Ilian presented the case study for www.akzonobel.com, the business needs, architecture and main elements of the technical implementation. They also made a quick overview of MOSS 2007 WCM features and security model.

In the end of presentation Robert started a raffle with SharePoint related questions and prizes, provisioned by Virtual Affairs and Microsoft Bulgaria.

Here you can find a several photos from the meeting:

STA41503

STA41508

STA41512

STA41513

STA41516

STA41520

STA41535

STA41527

Saturday, January 10, 2009

SUGBG 2-nd Meeting

The second meeting of Sharepoint User Group Bulgaria is scheduled for January 14-th. The title is:

"Using Sharepoint for your corporate website – Case: Akzo Nobel"

Description: One platform for all corporate websites and brands for Akzo Nobel. How to go from Business Case to a working solution using Sharepoint for Web Content Management.

The presenters should be Didi Farell (Services Manager in Virtual Affairs) and Ilian Stoyanov (MOSS architect in Virtual Affairs).

For registration and more details (in Bulgarian), visit http://www.sugbg.org/

Friday, November 28, 2008

New Horizons Bulgaria: "Sharepoint 2007 for Internet Sites"

Yesterday evening I had a presentation about "Sharepoint 2007 for Sharepoint Sites" in front of 40 persons. This was a part of consecution of free evening seminars, sponsored by New Horizons and Microsoft.













Thursday, November 27, 2008

SUGBG has been launched

Sharepoint User Group Bulgaria has been launched this evening! More than 60 persons gather together in hotel Vega for the Sahil Malik's presentation "Get Rich Quick! Creating Rich UIs in SharePoint". It was very interesting, with demonstrations how to host WCF service in Sharepoint and how to consume it from custom field control! The next SUGBG meeting was scheduled for 14 Jan 09.


























If you are interested in next user groups meetings and presentations, stay up to date with www.sugbg.org

Tuesday, November 4, 2008

Sharepoint User Group Bulgaria - sugbg.org



The first Sharepoint User Group in Bulgaria is comming - SUGBG! The first meeting is scheduled for 26-th of November and the group's site is http://www.sugbg.org/
The first speaker will be Sahil Malik with his talk:

Get Rich Quick! Creating Rich UIs in SharePoint

Not your wallet silly! I am talking about creating Rich UIs. Writing rich UIs is becoming more and more necessary as users are beginning to expect and demand more out of new browsers, and powerful computers. So why should such innovation be limited in SharePoint? It isn't! But there are multiple ways to provide a rich user interface within SharePoint. In this session Sahil shows you a .NET 2.0 versus .NET 3.5 way of providing rich UIs, and compares the two and shows the specific pros and cons in a SharePoint light.


Come and listen, meet exiting and create new friends :-)

Thursday, October 30, 2008

Presentation "Office Sharepoint Designer as powerful tool for MOSS 2007"

Yesterday evening I had a presentation at New Horizons Bulgaria. The audience was approximately 50 persons. NH Bulgaria is a sponsor of seria presentations focused to the latest versions of Visual Studio, Windows Server and MS Office. You can get the agenda from here (Bulgarian language only).

Friday, May 2, 2008

Microsoft Days 2008 in Sofia

In this year edition of Microsoft Days in Sofia I had two presentations:
  • Intranet Portal with Office Sharepoint Server 2007 – available only with request!!!
  • Web Content Management with Office Sharepoint Server 2007

Friday, June 15, 2007

Remix 07 Budapest

Budapest hosted Remix 07 11-12 of June. Very interesting conference, with participation of popular speakers Scott Guthrie, Steve Marx, Pete Lepage, Molly Holzschlag and others. The accents was Silverlight, ASP.NET AJAX and Windows Live Services.



The Museum Of Fine Arts


Scott Guthrie


Scott again


Cvetan and Peter with Molly


Pete Lepage


The big colaboration party :-)

More pictures: