We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Number of week

Thread ID:





150840 Jan 21,2020 05:40 PM UTC Jan 24,2020 05:47 AM UTC ASP.NET MVC - EJ 2 5
Tags: Schedule
Edson Tsuyoshi Tanaka
Asked On January 21, 2020 05:40 PM UTC


I need show number of week.
How can I do this?
I saw this command headerRow.Option(HeaderRowType.Week).Template("#week-template").Add();
but i didn't implemented successfully.
If you have annother implementation, I could like see, because I could like show the number in the same header, not in the new line header

Edson Tanaka.

Vengatesh Maniraj [Syncfusion]
Replied On January 22, 2020 07:09 AM UTC

Hi Edson, 

Greetings from Syncfusion Support. 

Based on the requirement, we have prepared the below sample for week number template. 

Kindly try the above sample and revert us for further assistance. 


Edson Tsuyoshi Tanaka
Replied On January 22, 2020 09:51 AM UTC

Thanks for sample, I was successful, but... can I use headerrows with the view different of timeline?

.HeaderRows(headerRow => { headerRow.Option(HeaderRowType.Week).Template("#week-template").Add(); headerRow.Option(HeaderRowType.Date).Add(); })
.Resources(res => { res.DataSource(ViewBag.Owners).Field("OwnerId").Title("Assignee").Name("Owners").TextField("text").IdField("id").ColorField("color").AllowMultiple(true).Add(); })
.Views(view =>
view.Option(View.Day).DisplayName("Dia").Group(group => group.Resources(ViewBag.Resources)).Add();

I like this effect

Edson Tanaka.

Vengatesh Maniraj [Syncfusion]
Replied On January 23, 2020 06:53 AM UTC

Hi Edson, 

Thanks for the update. 

Q1: We could not use the headerRows property with the views different of Timeline. For more reference about headerRows please find our UG documentation link below 

Q2: We can format and change the default appearance of  the events by making use of template option which is available within the eventSettings property. Based on the requirement we have prepared the sample which is available in below link. 

Views(view => { view.Option(View.Week).EventTemplate("#event-template").Add(); 

Kindly try the above and revert us for further assistance. 


Edson Tsuyoshi Tanaka
Replied On January 23, 2020 10:45 AM UTC

I had an idea with your sample.
In this option EventTemplate ("# event-template"), I found this option DateHeaderTemplate ("# day-template").
With that, I can customize what I want to display

Edson Tanaka

Vengatesh Maniraj [Syncfusion]
Replied On January 24, 2020 05:47 AM UTC

Hi Edson, 

Thanks for the update. 

We are happy that your requirement has fulfilled. 

Kindly revert us for further assistance. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon