This is a migrated thread and some comments may be shown as answers.

[Solved] Hide/Remove Incative Date in MonthView

2 Answers 112 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
GD
Top achievements
Rank 1
GD asked on 07 Jan 2010, 12:55 PM
Hi,
I have two questions (Both questions are for MonthView):
Q1: How can I remove/hide incative date number text in month view? For example: I want to hide date number text "28,29,30,31" as shown in the attached screen (red rectangle).

Q2: How can I show the first day of the month as only 1 not 01?

Thanks & Regards,
GD

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 07 Jan 2010, 02:32 PM
Hello,

Try the following code snippet in order to achieve the scenario.

CS:
 
    protected void RadScheduler1_TimeSlotCreated(object sender, Telerik.Web.UI.TimeSlotCreatedEventArgs e) 
    { 
        if (RadScheduler1.SelectedView == SchedulerViewType.MonthView) 
        { 
            String month = RadScheduler1.SelectedDate.Month.ToString(); 
            if (e.TimeSlot.Start.Date.Month.ToString() != month) 
            { 
                  e.TimeSlot.Control.Controls.Clear(); 
            } 
            if (e.TimeSlot.Start.Date.Day.ToString() == "1"
            { 
                LinkButton lbtn = new LinkButton(); 
                lbtn.Text = "1"
                e.TimeSlot.Control.Controls.Clear(); 
                e.TimeSlot.Control.Controls.Add(lbtn); 
            } 
        }  
    } 

-Shinu.
0
GD
Top achievements
Rank 1
answered on 08 Jan 2010, 06:57 AM
Hi Shinu,

Thank you very much.

Regards,
GD
Tags
Scheduler
Asked by
GD
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
GD
Top achievements
Rank 1
Share this question
or