Telerik
Skip Navigation LinksHome / Community / Code Library / ASP.NET and ASP.NET AJAX > Calendar > RadCalendar with No Weekend Days

Answered RadCalendar with No Weekend Days

Feed from this thread
  • Telerik Admin MVP avatar

    Posted on May 14, 2007 (permalink)

    Requirements

    r.a.d.calendar version

    2.1.0
    .NET version

    2
    Visual Studio version

    2005
    programming language

    C# / VB.NET / JavaScript
    browser support

    all browsers supported by r.a.d.calendar


     
    PROJECT DESCRIPTION
    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.

  • Answer Telerik Admin admin's avatar

    Posted on Dec 4, 2007 (permalink)

    Hi guys,

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

    Sincerely yours,
    Steve
    the Telerik team

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

Back to Top

Skip Navigation LinksHome / Community / Code Library / ASP.NET and ASP.NET AJAX > Calendar > RadCalendar with No Weekend Days

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.