I'd like to change the width and height of the igGrid programmatically each time the browser window is resized.
Here's a first attempt. Need to know how to set the grid height and width property.
$(window).resize(function () {
$("#grid1").width = $(document).width() - 20;
});
Here's the solution:
$(window).resize(
function () {
$("#grid1").igGrid({height: $(document).height() - 65});
$("#grid1").igGrid({ width: $(document).width() - 65 });
Hello Peter,
Alternatively you can use the jQuery UI syntax for setting options:
$("#grid1").igGrid("option", "height", 110);
Best regards,Martin PavlovInfragistics, Inc.