admin 管理员组文章数量: 1086019
<style>
#JqxGrid1{
word-wrap: break-word !important;
}
</style>
<div style="height: calc(100vh - 303px);">
<div id="grdBOQDetails"></div>
</div>
$(document).ready(function () {
var autoRowHeightJqxGrid=false;
var autoHeightJqxGrid=false;
$("#JqxGrid1").jqxGrid(
{
localization: Getlocalizationobj(),
width: 100 + "%",
height: 100 + "%",
columnsresize: true,
columnsreorder: false,
enablecolumnsvirtualization: false,
filterable: true,
showfilterrow: true,
theme: theme,
source: dataAdapter,
editable: true,
altrows: true,
sortable: true, //rowsheight: 25,
enabletooltips: true,
keyboardnavigation: false,
enablekeyboarddelete: false,
selectionmode: 'multiplerowsextended',
autoheight: autoHeightJmsGrid,
autorowheight: autoRowHeightJmsGrid,
columns: [
{ text: '', dataField: 'Text1', hidden: true },
{ text: "", dataField: 'Text2', hidden: true },
{ text: "", dataField: 'Text3', hidden: true }
]
});
$('#btnWrap').on('click', function () {
autoHeightJqxGrid = !$('#JqxGrid1').jqxGrid('autoheight');
autoRowHeightJqxGrid = !$('#JqxGrid1').jqxGrid('autorowheight');
$('#JqxGrid1').jqxGrid({ autorowheight: autoRowHeightJqxGrid,
autoheight:autoHeightJqxGrid });
});
});
This functionality is for expanding the row height according to the content when #btnWrap button is clicked. But after the click vertical and horizontal scroll bar is missing. It is caused due to autoheight
functionality. But in jqxGrid it is not possible to use autorowheight
without autoheight
.In jqxTreeGrid there is no such issue,but in jqxGrid issue is there.
Can anyone help me to find a solution?
本文标签: jqueryscroll bar missing after using jqxGrid autoheight and autorowheight featureStack Overflow
版权声明:本文标题:jquery - scroll bar missing after using jqxGrid autoheight and autorowheight feature - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744034068a2522033.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论