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

hide december month from calender

1 Answer 20 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Harikrishnan
Top achievements
Rank 1
Harikrishnan asked on 10 Aug 2012, 02:10 PM
Hi,

I have an issue.
Can we hide the december month from thse.
see the attache image and code

here we setting the MultiViewRows based on  a calculation.

some times the fourth month data(available date) will be none and user cannot view the foirth month

is this possible..in schduler_PreRender event?

please reply me urg

 

 

protected void schduler_PreRender(object sender, EventArgs e)

 

{

 

RadCalendar popupCalendar = schduler.FindControl("SelectedDateCalendar") as RadCalendar;

 

popupCalendar.ShowOtherMonthsDays =

false;

 

popupCalendar.AutoPostBack =

true;

 

 

int count = GetMonthCount(lst.ToArray(), popupCalendar.SelectedDate).Count;

 

popupCalendar.MultiViewColumns = 2;

double _val = (double)count;

 

popupCalendar.MultiViewRows = (

int)Math.Round(_val/2);

 

 

 

 

 

popupCalendar.FocusedDate = lst[0];

popupCalendar.DayRender +=

new Telerik.Web.UI.Calendar.DayRenderEventHandler(popupCalendar_DayRender);

 

}

 

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 15 Aug 2012, 08:30 AM
Hello Harikrishnan,

 Please note that the required functionality is not supported in case two rows are set in the multiview RadCalendar control. In case you do not want december to appear you should simply set three columns and one row.

Greetings,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Harikrishnan
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or