RadCalendar with No Weekend Days

Thread is closed for posting
2 posts, 1 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 14 May 2007 Link to this post

    Requirements

    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


     
    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.
  2. Answer
    3BD6F94B-4C03-46D3-8568-9982F1F201BF
    3BD6F94B-4C03-46D3-8568-9982F1F201BF avatar
    10940 posts
    Member since:
    May 2014

    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,
    Steve
    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.