Resize Scheduler ( same height as browser )

2 posts, 0 answers
  1. christian
    christian avatar
    2 posts
    Member since:
    Oct 2008

    Posted 10 Dec 2008 Link to this post

    hi,

    it is possible that the scheduler has always the same height as the browser?

    thanks
    christian
  2. Doug Beard
    Doug Beard avatar
    52 posts
    Member since:
    Jan 2008

    Posted 26 Aug 2009 Link to this post

    $(document).ready(function() { 
            var viewportwidth; 
            var viewportheight; 
            // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight 
            if (typeof window.innerWidth != 'undefined') { 
                viewportwidth = window.innerWidth, 
                viewportheight = window.innerHeight 
            } 
            // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document) 
            else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) { 
                viewportwidth = document.documentElement.clientWidth, 
                viewportheight = document.documentElement.clientHeight 
            } 
            // older versions of IE 
            else { 
                viewportwidth = document.getElementsByTagName('body')[0].clientWidth, 
                viewportheight = document.getElementsByTagName('body')[0].clientHeight 
            } 
             
            var schedulerClientObject = document.getElementById("<%= RadScheduler1.ClientID%>"); 
            schedulerClientObject.getAttribute('style').height = viewportheight ; 
    schedulerClientObject.getAttribute('style').widthviewportwidth ; 
        }); 

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top