.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Modal Dialog height in SharePoint 2010

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :SharePoint

In SharePoint 2010, I know the Modal dialog height is calculated dynamically in Javascript. For some dialogs, I mean if the dialog is opening a edit form then it includes ribbon on top of it which reduces the height of the scrolling part and it really looks ugly. Is there any way to add ribbon height to modal dialog height so that unscrollable ribbon height doesn't affect the scrollable area height? Hope I am explaning it correct.

I would really appreciate, if anyone can reply for me.




View Complete Post

More Related Resource Links

SharePoint 2010 Modal dialog & Silverlight



I've got a silverlight application on my sharepoint site which open a ModalDialog.

This code adds JavaScript code to html :

    private void RegisterJavaScript()
      var script = HtmlPage.Document.CreateElement("script");
      script.SetAttribute("type", "text/javascript");

      var sb = new StringBuilder();
      sb.AppendLine("function showMyModalDialog(){");
      sb.AppendLine("  var options = {");
      sb.AppendLine("    url: '/Pages/Test.aspx',");
      sb.AppendLine("    width: 600,");
      sb.AppendLine("    height: 300,");
      sb.AppendLine("    dialogReturnValueCallback: DialogCallback,");
      sb.AppendLine("    allowMaximize: false,");

Video: The SharePoint 2010 Dialog Platform

This demonstration shows the SharePoint 2010 dialog platform. (Length: 2:52)

Video: Developing on the SharePoint 2010 Dialog Platform

This demonstration shows how to create dialog boxes for the SharePoint 2010 dialog platform. (Length: 4:16)

Did anything change with modal dialog override GetCustomBuilder() in 2010?

I have several web parts in 2007 that override the GetCustomBuilder() method with the HtmlDesignerAttribute set to BrowserBuilderType.Dynamic in order to call aspx pages for custom UI on webbrowsable properties when you click the "..." in the EditorPart rather than just launching the default text area modal dialog. From http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.webpart.getcustombuilder.aspx it looks like everything is supposed to work the same way in 2010. But it's not. No matter what I've tried, the only thing I can get to load is the standard _layouts/zoombldr.aspx dialog. I even tried making a clone of zoombldr.aspx (named test.aspx), added another button to tell the difference and call it explicitly, but it didn't load. I've debugged and am confident GetCustomBuilder() is returning correct URLs to the custom aspx pages (and they load fine when requested directly). I've searched hi and lo without success in finding a solution. Any ideas? Many thanks!

Sharepoint 2010 views modal popup

Hello, somebody knows how can i launch a modal popup like the normal modal popup that launch sharepoint 2010 when you try to edit or add a new item in to a list or library froma custom list view?, the thing is that i did create a listview with a freeform toolbar and all the sections (view header, view body ...) in it, and add the edit column to it because i want to edit the items from the view, in the other hand the contenttype of the list that have associate the view have its own urlforms developed with silverlight, my problem is when i try to edit the items, i clicked in the edit link column and the custom urlform added to the contentype is open in a blank page and no in the normal popups of sharepoint 2010,, if some body have had this issue i will appreciate your comments.

How to close the sharepoint modal dialog and refresh the parent page using Server side API?

I am trying to find a way to close a modal page that has been opened with the click event of ribbon control. Once the modal dialog is opened, I'm showing 'OK' button for the user to confirm some action on the respective list item. If the user clicks on 'OK', I'm performing some action on the listitem using server side code. Here the problem for me is, once the action is completed on this listItem, I need to close the dialog and refresh the parent page (AllItem.aspx) using *sharepoint server side

I'm aware that for closing the dialog we have JS code "SP.UI.ModalDialog.commonModalDialogClose". But this is not useful for me, because I should first run some action on the listitem and once that action is complete, then only I should close this dialog.

Short Overview of SharePoint Features in Visual Studio 2010

As you probably know, Visual Studio 2010 was announced earlier this week and it contains a lot of cool features and project templates for SharePoint developers. Below is a short overview for some of the SharePoint development related features and project templates.

How to get more information about the exceptions that can happen in SharePoint 2010 projects?

In case there is an exception anywhere in the SharePoint 2010 project (most common place an exception would happen is during deployment of your SharePoint project, custom deployment configuration or custom deployment steps), there's a registry key EnableDiagnostics available for you to use.

InfoPath 2010 cannot connect to SharePoint 2010

You have installed Office 2010 beta and you are trying to connect to SharePoint 2010 from InfoPath but you get an error

Installing and configuring SharePoint 2010

The following steps show how to install SharePoint 2010 on VMware workstation 7.0. Host computer used during the preparation of this walk-through was a Vista (32-bit) machine and guest machine used was VMware workstation 7.0 with Windows Server 2008 Service Pack 2 (64-bit).

Content Query Web Part missing in SharePoint 2010

If you don't see content query web part listed in the web parts list, this is because you have not enabled "Search Server Web Parts" feature in site collection features. Enable this feature and content query web part will show in the list of web parts.

Developing on SharePoint 2010 Intro Tutorial

Folks, this is a exciting news for SharePoint Geeks that the availability of Developing on SharePoint 2010 Tutorial can be access here.

Accessing SharePoint 2010 Data with Server-Side APIs

Accessing SharePoint data in server-side solutions is one of the most common tasks that you will perform as a SharePoint developer. SharePoint 2010 provides powerful server-side APIs that enable you to retrieve, add, edit, and delete SharePoint data programmatically. SharePoint 2010 also includes the new LINQ to SharePoint technology that enables you to work with SharePoint data efficiently and easily.

What Developers Need to Know About SharePoint 2010

Visual Studio 2010 integrates with SharePoint much more closely than in previous versions. Visual Studio 2010 includes SharePoint-specific project types and project item types, and includes powerful packaging, deployment, and debugging features that help increase your efficiency as a SharePoint 2010 developer.

Creating Dialogs and Ribbon Controls for SharePoint 2010

SharePoint 2010 provides new user interface components, such as server ribbons, and the new dialog platform. As a developer, you can create controls for the server ribbon and dialog boxes for the dialog platform.

Sandboxed Solutions for Web Parts in SharePoint 2010

SharePoint 2010 provides a new sandboxed environment that enables you to run user solutions without affecting the rest of the SharePoint farm. This environment means that users can upload their own custom solutions without requiring intervention from administrators, and without putting the rest of the farm at risk.

Configuring Profile Image Export in SharePoint 2010

It's no secret that I am thrilled with the new social features of SharePoint 2010. I am most excited about the new Profile Picture handling. I strongly believe that the more we can show the faces of our colleagues to one another the more connected we will feel. Clearly Microsoft feels that way as witnessed by the many features that make use of the Profile Image like the Activity Feed and Colleagues list
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend