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

Week - string

Asked by Kamil Zegadlo
14 years ago.

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?

Comment posted by Dan Letecky
14 years ago.

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 Kamil Zegadlo
14 years ago.

Great:)

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