search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Calendar.BeforeHeaderRenderEventArgs precision

Asked by r2b2s
9 years ago.


1 I would like to put html in the header cormer, but any header with IsCorner property will fired BeforeHeaderRender, maybe it's only in demo version ??

2 In the same event the arg have a columns property, i use ressource mode and define sub-columns but all BeforeHeaderRender args have a columns proprty empty ? How can i have the level of then column rendered

3 It's possible to have different width for sub columns ?

thank and sorry for bad english

Answer posted by Dan Letecky [DayPilot]
9 years ago.

1. This has been changed recently. The BeforeHeaderRender is not called for the corner anymore. You can modify it directly using .CornerHtml property:

DayPilotCalendar1.CornerHtml = DayPilotCalendar1.StartDate.Year.ToString();

2. This might be a bug, please let me check it.

3. Unfortunately not at this moment.

You can set fixed column width (which will add a horizontal scrollbar to the calendar if the total width is too big) but it will be the same for all columns:

Comment posted by r2b2s
9 years ago.

ok thanks

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.