Solved

Scroll bar problem with Modal Dialog web form

Posted on 2011-02-15
5
932 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

705 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

19 Experts available now in Live!

Get 1:1 Help Now