$("#Grid").ejGrid({
dataSource: window.gridData,
allowPaging: true,
allowSorting: true,
isResponsive: true,
minWidth: 600,
columns: [
-------------------
]
});
});
ref: https://www.syncfusion.com/forums/127793/resizing-the-ejgrid
and my code is as follows.
<script>
$( window ).resize(function() {
var myHeight = (Math.floor($("#ResultPlaceholder").height() - 140)/40);
$("#ResultGrid").ejGrid({
pageSettings: { pageSize : myHeight },
isResponsive: true,
minWidth: 100
});
console.log($("#ResultGrid").width());
console.log($(window).width());
});
</script>
but sometimes according to changed window size, the grid is not reponsive for the width.
in console.log, the $('#ResultGrid').width() does not change at all, but $(window).width() changes.
Thank you in advance.
Kind Regards,