skip navigation
Telerik UI for ASP.NET AJAX
Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
NEW
: Design Kits for Figma
Online Training
Document Processing Library
Embedded Reporting for web and desktop
Web
Kendo UI
UI for jQuery
UI for Angular
UI for React
UI for Vue
UI for Blazor
UI for ASP.NET Core
UI for ASP.NET MVC
UI for ASP.NET AJAX
Mobile
UI for .NET MAUI
UI for Xamarin
Document Management
Telerik Document Processing
Desktop
UI for .NET MAUI
UI for WinUI
UI for WinForms
UI for WPF
Reporting & Mocking
Telerik Reporting
Telerik Report Server
Telerik JustMock
Automated Testing
Test Studio
Test Studio Dev Edition
CMS
Sitefinity
UI/UX Tools
ThemeBuilder
Design System Kit
Debugging
Fiddler
Fiddler Everywhere
Fiddler Classic
Fiddler Jam
FiddlerCap
FiddlerCore
Free Tools
VB.NET to C# Converter
Testing Framework
View all products
Overview
Demos
Roadmap
What's New
Roadmap
Release History
Migrate to Blazor
Docs & Support
Support and Learning
Support and Learning Hub
Docs
Demos
Virtual Classroom
Forums
Videos
Blogs
Accessibility and Security
Submit a Ticket
Productivity and Design Tools
Visual Studio Extensions
ThemeBuilder
Embedded Reporting
Pricing
Shopping cart
Login
Contact Us
Try now
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX
This is a migrated thread and some comments may be shown as answers.
Resize Scheduler ( same height as browser )
1 Answer
54 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
christian
Top achievements
Rank 1
christian
asked on
10 Dec 2008,
02:20 PM
hi,
it is possible that the scheduler has always the same height as the browser?
thanks
christian
Add a comment
Submit comment
Cancel
1 Answer
, 1 is accepted
Sort by
Score
Date
0
Doug Beard
Top achievements
Rank 2
answered on
26 Aug 2009,
05:13 PM
$(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')
.width
=
viewportwidth
;
});
Add a comment
Submit comment
Cancel
Answer this question
Drag and drop files here or
browse
to attach...
Browse
for files to attach...
Supported file types: PNG, JPG, JPEG, ZIP, RAR, TXT. Max total file size - 20MB.
Submit answer
Cancel
Tags
Scheduler
Asked by
christian
Top achievements
Rank 1
Answers by
Doug Beard
Top achievements
Rank 2
Share this question
or
Copy link