Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Set Ignite UI Grid width programmatically from an .html page
posted

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;

});

Parents
  • 80
    posted

    Here's the solution:

     

        $(window).resize(

    function () {                       

                $("#grid1").igGrid({height: $(document).height() - 65});

                $("#grid1").igGrid({ width: $(document).width() - 65 });           

            });

Reply Children
No Data