Solved

Scroll bar problem with Modal Dialog web form

Posted on 2011-02-15
5
935 Views
Last Modified: 2012-05-11
Experts,

I am having an issue with scroll bars on a modal web form. The modal form contains a GridView of customer data based on the customer id being passed.  The modal form opens fine, the data in the GridView is correct. But even though the data in the Gridview requires scrolling, there are no scroll bars. In the function below, if I add        scroll:yes       you will see the scoll bar but it is disabled.


<script type="text/javascript">
    function openWindow()
    {
        var strEmpiNo = document.getElementById("<%= txtEmpiNo.ClientID %>").value;
        window.showModalDialog("CommentHistory.aspx?empi=" + strEmpiNo, "","resizable:yes");
    }
    </script>

Any assistance is appreciated.
Thank you.
0
Comment
Question by:jvoconnell
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:Kumaraswamy R
ID: 34905399
window.showModalDialog("modal.htm", "docForm","center:yes;resizable:no;scroll:yes;status:no;" );
0
 
LVL 29

Expert Comment

by:Kumaraswamy R
ID: 34905404
0
 
LVL 1

Author Comment

by:jvoconnell
ID: 34906520
Hello, thank you for the response. Unfortunately that didn't work. I did see use the information on the URL provided yesterday. I just can't seem to get it to work. I attached a screen shot in case it would be of any help to people. Thank you for the quick response. It is appreciated.
Modal-Example.doc
0
 
LVL 1

Accepted Solution

by:
jvoconnell earned 0 total points
ID: 34918666
I removed the following settings from my <style> tag. (margin:0;width:100%;height:100%) Now the scroll bar is functioning properly. Thank you for your time.
0
 
LVL 1

Author Closing Comment

by:jvoconnell
ID: 34949745
Removing the following settings from my <style> tag (margin:0;width:100%;height:100%) solved the issue with the scroll bar.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Set cookies HttpOnly and Secure 4 108
ASP.Net Session State alternatives 3 57
Runtime Error 2 28
Make an ajax call ithat alters url and updates a listview in asp.net 1 19
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now