Show only the days of the current month in MonthView

6 posts, 1 answers
  1. Bryan Smouse
    Bryan Smouse avatar
    19 posts
    Member since:
    Nov 2005

    Posted 30 Jun 2009 Link to this post

    Hey guys,
    After looking thru the forums I can't seem to find anything to help me.  I am wondering if it is possible to only show the actual month in the MonthView and NOT show the last/next few days of the previous/next month?  I have two RadSchedule control on a page to give a 2 month view but the week of the next month is distracting to see twice ( example of month overlap )  Is there an easy way I can suppress the extra days?
    Thanks,
    Bryan Smouse
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 01 Jul 2009 Link to this post

    Hi Bryan,

    Thank you for this question. Currently, RadScheduler applies the rsOtherMonth class to days from other months. You can override its style if needed:

    .rsOtherMonth  
     {  
        backgroundsilver !important;     
      } 

    If this is not exactly what you are looking for, please elaborate so we can decide if RadScheduler needs a new feature.



    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Bryan Smouse
    Bryan Smouse avatar
    19 posts
    Member since:
    Nov 2005

    Posted 01 Jul 2009 Link to this post

    Hey Peter,
    I have been playing around with overriding the style that you mention and that does help a little.  But what I was really hoping for was to tell the RadScheduler to only render the days for the selected month when in MonthView and the overlapping days would just be gray squares with no text or appointments.  As it is currently, if there are any appointments for the "overlap" days they still show up (in my screen shot July 3 & 4 on the top calendar, and June 30th on the bottom).  One work-around that I could put in is when in MonthView, only get the current month's appointments and then bind so the previous and next month's appointments won't show up on the "overlapping" days, but then I would have to re-bind when the NavigationCommand pushes me to another month.

    I normally like the way the RadScheduler shows the days of the previous month and next month when filling in the calendar but when showing a two month view by putting two RadSchedulers on the same page, it seems distracting.  It is more of a visual thing than anything else, it is not going to stop me from using the RadScheduler control, but it may be a nice feature.

    Thanks,
    Bryan
  4. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 02 Jul 2009 Link to this post

    Hello Bryan,

    Thank you for elaborating. Yes, this would be a new feature which we will consider implementing.


    Regards,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. durul
    durul avatar
    4 posts
    Member since:
    Mar 2011

    Posted 03 Apr 2011 Link to this post

    how can hide other month appointments and date box ?
  6. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 04 Apr 2011 Link to this post

    Hello Durul,

    Could you please be more specific on what do you mean by "date box"? If this is the date header you can hide it by this Css class:

    .RadScheduler .rsHeader h2
            {
                visibility: hidden;
            }

    Also please take a look at this KB article for how to prevent the inserting and editing of appointments for special days (in your case - other months).

    Best wishes,
    Veronica Milcheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top