Put vertical scroll bar to dropdownlist options by any technique

Posted by Kkaur05 under Others on 11/1/2013 | Points: 10 | Views : 4662 | Status : [Member] | Replies : 1
In view of my mvc app , i want to have scrollable dropdownlist.
Bur the vertical scrollbar should be on options not on the menu of dropdownlist.

please help.




Responses

Posted by: Allemahesh on: 11/1/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Dear Kkaur05,

Please see the below links:-

http://demos.devexpress.com/MVC/GridView/Scrolling
http://www.devexpress.com/Support/Center/Question/Details/Q480520
http://p2p.wrox.com/asp-net-2-0-professional/49599-how-add-vertical-scroll-bar-fixed-heading.html
http://www.dotnetbull.com/2011/11/scrollable-gridview-with-fixed-headers.html

Or you can try this below one.

settings.Settings.VerticalScrollBarMode = ScrollBarMode.Visible;
settings.Settings.VerticalScrollableHeight = 200;


Or

<div class="test" style="overflow: scroll; width: 150px">
<div style="width: 1000px">
@grid.GetHtml()
</div>
</div>


OR

<div style="width: 100%; height: 400px; overflow: scroll">your GridView</div>



Happy Coding,
If it helps you or directs U towards the solution, MARK IT AS ANSWER

Kkaur05, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response