Question about event sequences

Add-in Express™ Support Service
That's what is more important than anything else

Question about event sequences
 
This forum has moved to a new location. From now on, please post all your questions about Ribbon Designer for SharePoint on this forum.
Alver R.




Posts: 5
Joined: 2012-01-11
You have several events in the ribbon designer module. What is the sequences of that events? Does OnLoad come first? Which ones fire next and in what order?
Posted 25 Jan, 2012 04:33:09 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Alver,

Here is the sequence and short descriptions:

1. OnDeploymentAction - occurs when the designer feature is installed, uninstalled, activated, deactivated, or upgraded. Note, this event will not occur if no deployment actions were performed.

2. OnLoad - occurs when the designer is loaded into the Page object. You can change the Ribbon UI and controls' properties in this event.

3. OnBeforeRibbonLoad - occurs when a ribbon control is being registered for the SharePoint Server Ribbon. This event may occur several times depending on the number of controls on your ribbon. You can change the XML code on the fly in this event.

4. OnBeforeScriptLoad - occurs when the Client Class Library (JavaScript) is being registered for SharePoint Server Ribbon. You can add additional script in this event or just change it via the e.Script property.
Posted 25 Jan, 2012 07:09:11 Top
Alver R.




Posts: 5
Joined: 2012-01-11
Hi Dmitry,

Thanks for the info. I am interested in one more event, OnInitialize, where is its place in that sequence?
Posted 25 Jan, 2012 08:45:03 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Alver,

The OnInitialize event is a JavaScript event and it is not a part of the sequence above, this event occurs when the end user activates any of your components (tab or contextual tab) on a particular page.

If you have other questions feel free to ask me.
Posted 25 Jan, 2012 10:45:26 Top