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
260
WebDataGrid height and browser height
posted

May I know how to set the height of WebDataGrid dynamically according to the browser height and display a vertical scrollbar if the WebDataGrid cannot display all the records when the height is too short?

Parents
  • 49378
    posted

    Hello Lance,

    It is possible to wrap the grid (with 100% height) in a div which has it's height dynamically set on document ready :

            $(function () {
                $("#div1").height(window.innerHeight - 50);
            });

    I am attaching a sample demonstrating this approach in practice.

    WDGHeight.zip
Reply Children
No Data