Andrew Connell [MVP SharePoint]
1579 Posts |  42 Articles |  4864 Comments
.NET  |  MCMS  |  SharePoint  |  Office System
SharePoint Quick Links
Article Categories
Archives
Post Categories


Add to Technorati Favorites

Seen the new dialog framework in SharePoint 2010? You know, when you want to create a new item in a list, a dialog appears. It’s actually real easy to create a new dialog... you just have to get your hands dirty with some JavaScript.

The quickest way to show this is with an application page:

DialogCode

When you click the button, poof, you get a dialog!

Dialog

Technorati Tags: ,
posted on Tuesday, December 08, 2009 4:04 PM

Feedback

# re: SharePoint 2010 Dev TidBit – Want to create your own dialog? 12/10/2009 9:22 AM Ryan Avery
Gravatar Andrew, thanks for the great post! I am a SharePoint Business Analyst for my company and not a developer so I can think of a hundred ways to use this, but not actually code it. I can see this being used to bring up non-sharepoint apps. We're trying to make SharePoint 2010 our intranet and central landing page for the company. With this method, we could re-wrap our other .NET apps with the look and feel of SharePoint and then launch them this way. Thanks for the tip.

# re: SharePoint 2010 Dev TidBit – Want to create your own dialog? 2/15/2010 2:58 PM Michael
Gravatar Thanks for the info! I am hoping you could help me with a small problem I am have with the dialogs. I used your code word for word and it worked great. However if when the button the triggers the code is at the bottom of the page and the users has to scoll to it the the dialog box is display out of site. It almost seems that once the button is past the half way point the dialog box is no longer centerd in the viewable window... Any ideas?

Post Feedback

Title:
Name:
Email:
(email will not be displayed)
Url:
Comments: 
Please add 3 and 2 and type the answer here:    
All Comments Are Filtered & Moderated
Unfortunately comment spammers are just too effecient and are constantly dirtying up blogs with irrelevant and unwanted comments trying to improve their standing on search engines. All comments on this blog are moderated. I do not censor comments, but I don't approve comments with vulger language or those soliciting products. Most of the time comments are approved within a few hours of being submitted with the only exception when I'm traveling.

Why are you asking for my email address?
The only reason I'm asking for your email address, which isn't required to submit a comment, is to provide a gravatar if you've created an account for yourself and associated your email address with a small image. If you have a gravatar created for the email address you submit, it will appear next to your comment. Otherwise nothing will appear.

What is a gravatar?
A gravatar is a "globally recognized avatar." You can get more information about gravatars, as well as create your own for free, at www.gravatar.com. You can also view my gravatar here.


Copyright © 2003 - 2010 Andrew Connell
Creative Commons License 
This work is licensed under a Creative Commons License
Site design by Heather Solomon.

 
 
MOSS WCM Training
Looking for MOSS 2007 WCM developer training? Look no further! I teach my 5-day hands-on and online WCM classes for developers I offer through my company: Critical Path Training.

Get more information on the WCM courses!