Scroll bar problem with Modal Dialog web form


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");

Any assistance is appreciated.
Thank you.
Who is Participating?
jvoconnellConnect With a Mentor Author Commented:
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.
Kumaraswamy RCommented:
window.showModalDialog("modal.htm", "docForm","center:yes;resizable:no;scroll:yes;status:no;" );
Kumaraswamy RCommented:
jvoconnellAuthor Commented:
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.
jvoconnellAuthor Commented:
Removing the following settings from my <style> tag (margin:0;width:100%;height:100%) solved the issue with the scroll bar.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.