in

Corey Roth and Friends Blogs

Group site for developer blogs dealing with (usually) Ionic, .NET, SharePoint, Office 365, Mobile Development, and other Microsoft products, as well as some discussion of general programming related concepts.

Kyle Kelin on .Net

Some other UI Hooks in SharePoint 2010

In my last post I wrote about the Ribbon Control. In this post I’m going to review three new UI features in SP 2010 that SharePoint itself uses but you as a developer can leverage in your own applications.

Status Bar

image

The status bar is for persistent information like page status or version. It will show just below the ribbon control and you can select 4 different background colors. The javascript api is pretty simple:

 

SP.UI.Notify.addNotification(strHtml, bSticky, tooltip, onclickHandler)

SP.UI.Notify.removeNotification(id)

 

Notification Bar

 image

The Notification bar is less intrusive then the status bar and used for more transient information. By default each message remains on the screen for five minutes. Let’s look at some javascript to add and remove these notifications:

 

SP.UI.Status.addStatus(strTitle, strHtml, atBeginning)

SP.UI.Status.updateStatus(sid, strHtml)

SP.UI.Status.removeStatus(sid)

SP.UI.Status.removeAllStatus(hide)

SP.UI.Status.setStatusPriColor(sid, strColor)

 

 

Dialog Platform

One of the first things you will notice about SP 2010 is the effort the development team has put forth to reduce the number of page refreshes. One way to do that is to make use of Modal Dialog boxes. Just create a new list item and you will see exactly what I am talking about. You can make use of this Modal Framework using the javascript API. You will pass in another webpage or a DOM element. For example:

 

function myCallback(dialogResult, returnValue) {alert(“Hello World!”);}

var options = {url: “/_layouts/somepage.aspx”, width: 500, dialogReturnValueCallback:myCallback};

SP.UI.ModalDialog.showModalDialog(options);

 

 

I obtained the information in this post from Elisabeth Olson’s UI Presentation at the SharePoint 2009 Conference.

Comments

 

seena seena said:

i am seena and i have read your site in a very deep and i would like to appreciate you on this brilliant effort. You have provided some thing so much different that i can't have words for thanks. I am a student of an =IT class. That’s name is <a href="http://www.microsoft-braindumps.com">microsoft tests</a>. In which i have desire a lot of knowledge of some different types. Your site has also provide me something related my degree. i am very grateful to you on this.

May 24, 2010 4:39 AM
 

test said:

test

May 24, 2010 5:13 AM
 

mcse questions said:

i seriously adore your posting way, very helpful,

don't quit and also keep creating for the reason that it just worth to read it,

excited to find out pleasant day way more of your own content articles, have a!

May 25, 2010 11:48 PM

Leave a Comment

(required)  
(optional)
(required)  
Add

About KyleKelin

Kyle Kelin has been implementing software in the Microsoft space for the past 6 years mainly as a consultant. His interests are SharePoint, .NET, JQuery, and Silverlight.
2019.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems