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
695
2012.1 in Quirks Mode
posted

Hi, Unfortunately we have to run the jQuery grid in a quirks mode page and want to know if I should expect any issues doing this.  I notice that in a lot of your forum replies, you ask for the doctype, so I thought it would be good to try to learn of potential problems in advance.

 

I need to maximize the height and width of the grid based on the window height, which seems relatively straightforward as we are not yet using virtualized rows, instead using paging for the first version. I read in another thread that if we are using virtualized rows, we need to recreate the grid, and there was code posted to do that, but in the mean time, this should work (once the values aren't hardcoded), no?

 

                    $(document).ready(function () {

                        // on load events

                        resizeGrid();

 

                        // window resize

                        $(window).resize(function () {

                            resizeGrid();

                        });

 

                        // functions

                        function resizeGrid() {

                            $("#grid1").igGrid("option", "height", "850px");

                            $("#grid1").igGrid("option", "width", "800px");

                        }

                    });

Also, I see in the examples the .selector is used a lot. I assume this is just a placeholder for whatever css selector you want to use (class or id).