RadCalendar with No Weekend Days

Thread is closed for posting
2 posts, 1 answers
  1. Telerik Admin
    Telerik Admin avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 14 May 2007 Link to this post


    RadCalendar for ASP .NET version

    RadControls for ASP .NET AJAX version
    2.1.0 and later (RadInput 2.1.x and later)

    2008.1.415 and later
    .NET version

    2.0 (RadCalendar for ASP .NET)

    2.0 and later (RadControls for ASP .NET AJAX)

    Visual Studio version

    2005/2008 (RadCalendar for ASP .NET)

    2005 and later(RadControls for ASP .NET AJAX)

    Programming language

    C# / VB.NET / JavaScript
    Browser support

    all supported by RadCalendar for ASP .NET

    all browsers supported by RadControls for ASP .NET AJAX

    The project demonstrates how to modify the RadCalendar view to show only the week days, i.e. no weekend days. This behavior can be achieved by setting "display:none" to all unnecessary day and header cells. By the DayRender server- and client-side events we hide the day cells, by the HeaderCellRender server-side event we hide the cells from the Sunday and Saturday column headers on initial load and by the client-side event CalendarViewChanged - the header cells after navigation to another month view. Note that we look for the corresponding header cells by the text of the cell, which depends of the Culture and the value of the DayNameFormat property. In the example the calendar has set DayNameFormat="Short" and page attribute Culture="en-US", which means that the headers name for Sunday and Saturday are Sun and Sat. You should change them to the specific week (abbreviated) names which correspond to your RadCalendar header text.
  2. Answer
    Steve avatar
    10940 posts

    Posted 04 Dec 2007 Link to this post

    Hi guys,

    Find attached the modified version of the code library that works with RadControls for ASP .NET AJAX. The main changes are due to the new MS AJAX client-side object model.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.