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

How to update the content of top left corner cell on scheduler?

Asked by Gary
13 years ago.

The top left corner content can be customized in page_load event, but it can be customized when click zoom in or zoom out. e.g. only when hour view, i want to display the data string in the top left corner..

Comment posted by Dan Letecky
13 years ago.

It will be possible to update the upper-left corner in DayPilot Pro 5.0.

See also forums.daypilot.org/Topic.aspx/566/update_ressourcecolumn_with_callback

Comment posted by Dan Letecky
13 years ago.

Update: This is not yet working in DayPilot Pro 5.0. However, it's now implemented and it will be available in DayPilot Pro 5.0 SP1.

Comment posted by Erik
10 years ago.

Hi,

I've looked at the documentation for 5.0 and 5.0 SP1, but i cant find any information as to how to change content of top left corner. Can you please elaborate?

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

Please see an example from Demo/Scheduler/Default.aspx.cs:

    protected void DayPilotScheduler1_BeforeResHeaderRender(object sender, DayPilot.Web.Ui.Events.BeforeHeaderRenderEventArgs e)
    {
        if (e.IsCorner)
        {
                e.InnerHTML = String.Format("<div style='padding:5px; font-weight: bold; font-size:22px; text-align:center'>{0}</div>", DayPilotScheduler1.StartDate.Year);
        }
    }
This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.