Home Unanswered Active Tags New Question

Week - string

Hello,

Wheni choose:

.CellGroupBy = GroupByEnum.Week;

On chart there are strings: Week 44, Week 45 itd.

I'm from Poland, and my boss don't want english words in this project. To change thisI had to modified source file. But this isn't good way. Can you take strings to some there whenI can change them with out modified source file?

Asked by Kamil Zegadlo 1 year ago.
Replies

You should check BeforeTimeHeaderRender event. You can override the text in the column groups using the following code:

protected void DayPilotScheduler1_BeforeTimeHeaderRender(object sender, DayPilot.Web.Ui.Events.BeforeTimeHeaderRenderEventArgs e)
{
  if (e.IsColGroup)
  {
    e.InnerHTML = String.Format("Tydzien {0}", Week.WeekNrISO8601(e.Start));
  }
}

Comment posted by Dan Letecky 1 year ago.

Great:)

Comment posted by Kamil Zegadlo 1 year ago.
New Reply
This reply is
Your name (optional):

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