locked
vertical scroll bar for partial view in asp.net mvc RRS feed

  • Question

  • User-590375999 posted

    Hi,

    i need to hide scroll bar in the page but i need to show in the partial view, i mean under the header.

    Monday, March 25, 2019 9:09 AM

All replies

  • User-1038772411 posted

    Set a max-height property on your modal window to prevent it from exceeding a certain height.
    Then set overflow-y: auto on your modal window to have a vertical scroll bar pop up if the content exceeds the height.
    To force the vertical scroll bar to show up regardless of whether the content overflows, set it to overflow-y: scroll instead.

    Try with this, may be this will help you

     .css({ "max-height": screen.height * .8, "overflow-y": "auto" })...

    Monday, March 25, 2019 11:07 AM
  • User1724605321 posted

    Hi sivapooja ,

    You may provide more details about "Under the header" . try use overflow: auto  to make scroll bar show and use overflow: hidden to disable scroll bar on specific page .

    Best Regards,

    Nan Yu

    Tuesday, March 26, 2019 1:51 AM