Home Unanswered Active Tags New Question

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

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..

Asked by Gary 3 years ago.
1 other person also wants an answer.
Replies

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 3 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 Dan Letecky 3 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?

Comment posted by Erik 9 months 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);
        }
    }
Answer posted by Dan Letecky [DayPilot] 9 months ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java