Link to home
Start Free TrialLog in
Avatar of jvoconnell
jvoconnell

asked on

Scroll bar problem with Modal Dialog web form

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.
Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

window.showModalDialog("modal.htm", "docForm","center:yes;resizable:no;scroll:yes;status:no;" );
Avatar of jvoconnell
jvoconnell

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of jvoconnell
jvoconnell

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Removing the following settings from my <style> tag (margin:0;width:100%;height:100%) solved the issue with the scroll bar.