html - how to show/hide vertical scrolbar automatically in slickgrid -


basically trying insert scrollbar slickgrid in application. here initializing slickgrid , loading on popup open. issue is, when rows mininum (i.e 1 example) scroll bar appears when overflow-y set scroll. how make vertical scroll bar hide when number of rows lesser height of given div , appear when rows exceed fixed height? please find code below.

<td id="popupview" style="padding-left:10px;float:left"> <a href="#" onclick="popupview()" style="color:blue;" >slickgrid </a></td> 

onclick of "slickgrid" popup opens load slickgrid initialized below (javascript grid assumed have initialized):

<div id="slickgridgrid" style="height:99%;width:100%;border:1px solid lightgray;overflow-y:scroll;" > 

the overflow-y property mentioned appearance of vertical scrollbar in grid,which appear when single row appears. please me resolve problem. thank in advance.

var gridoptions = { autoheight:true }; 

you need set autoheight option , page scrolls according height of grid. can set min-height surrounding div avoid small grid when there no data.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -