Your Cart is currently empty.
 ccBoard Forum :: KC-Calendar
Welcome Guest   [Register]  [Login]
RoadMap and features requests   by admin on 11-09-2010 16:28:40
Custom development   by Guest on 11-09-2010 15:44:10
Post Reply
 Subject :Month View settings.. 15-02-2012 16:02:11 
Narayan

Guest

Hi,

In the Month view, when the number of events are more than what can be shown in the day cell, a text showing the number of events that are not been shown is displayed at the bottom of the cell. 
Is there a way to get a handle on this text so that we can display a custom message. 
Also for the can we put in any text other than the Date inside the Day cell header.

Appreciate your help. 

IP Logged
Quote Quick Reply
 Subject :Re:Month View settings.. 15-02-2012 22:24:22 
jeremy-reynaud
Joined: 01-09-2010 15:18:28
Posts: 127
Location: Montpellier
 

Hi Narayan,

There is no configuration for the hidden events label.
The easiest way to override default one is to implement your own day cell renderer.

Please find as attachment a custom renderer sample.

Then you have to set it in the component declaration (in MXML):

calendarDayCellRenderer="CalendarDayCellRendererCustomNotDisplayedItems"

or in AS3

calendar.calendarDayCellRenderer = new ClassFactory(CalendarDayCellRendererCustomNotDisplayedItems);

 

For the day cell header, you can override default labels by defining a Calendar bundle as defined in the CalendarDateUtils.getDayHeaderDateToString AsDoc: http://www.flex-component.com/asdoc/kccalendar/com/keepcore/calendar/utils/CalendarDateUtils.html#getDayHeaderDateToString%28%29

Defining a Calendar bundle is explained in this article: http://www.flex-component.com/components-documentation/kc-calendar-documentation#nav4

But there is another way, to define your own header renderer as for the cell renderer.

I also attached a sample, you also have to set in in MXML or AS3:

calendarDayHeaderRenderer="CalendarDayHeaderRendererCustom"

or

calendar.calendarDayHeaderRenderer = new ClassFactory(CalendarDayHeaderRendererCustom);

 

Best regards,

Jérémy



Attachments
 CalendarDayXXXRenderers.zip [0 KB] :: CalendarDayCellRendererCustomNotDisplayedItems & CalendarDayHeaderRendererCustom renderers
IP Logged
Jérémy Reynaud
KeepCore CTO - Flex Component Administrator
Flex Expert - 1st KCCalendar component fan
Quote Quick Reply
 Subject :Re:Month View settings.. 07-05-2012 18:03:36 
Guest

Guest
Hi Jeremy!

I wanted to render the month view with an item renderer of my own, but due to lack of space I only get the +x regarding to the hidden events, and my item renderer updateDisplayList doesn't get called. I wanted a small label rendered and not the +x label regarding the hidden events.
My KCCalendar version doesn't have the calendarDayCellRenderer property or the CalendarDayCellRenderer as class.
How can I do this? Am I missing something?
IP Logged
Quote Quick Reply
 Subject :Re:Month View settings.. 08-05-2012 13:04:39 
jeremy-reynaud
Joined: 01-09-2010 15:18:28
Posts: 127
Location: Montpellier
 

Hi,

What is your KCCalendar version (available in KCCalendar.VERSION constant)?

Full customization possibilities have been added in the 1.6 version so if you have a previous version you won't have access to this feature and you will need to upgrade to the last one (1.6) before.

Best regards,

Jérémy

IP Logged
Jérémy Reynaud
KeepCore CTO - Flex Component Administrator
Flex Expert - 1st KCCalendar component fan
Quote Quick Reply
 Subject :Re:Month View settings.. 08-05-2012 13:32:25 
Guest

Guest
Version 1.5.0.
I did a little hack on MonthView.as and MonthWeekDayView.as and it's working as I wanted.
Thank you anyway!
IP Logged
Quote Quick Reply
 Subject :Re:Month View settings.. 10-05-2012 12:37:39 
LaraKRafael
Joined: 10-05-2012 10:28:15
Posts: 1
Location: 444 Murry Hill Cir, Lancaster, PA 17601
I am using KCCalendar version 1.6 in my current project, I must say this upgraded version is really very useful.
IP Logged
Quote Quick Reply
Post Reply
Page # 
 Quick Reply

 


Powered by ccBoard