How to display weekday in TimelineMonthView

Hi everybody,

   is there a way to display the weekday in addition to the day number in TimelineMonthView ?

     regards

       Uwe

3 Replies 1 reply marked as answer

RV Ravikumar Venkatesan Syncfusion Team August 6, 2020 02:43 PM UTC

Hi Uwe, 

Greetings from Syncfusion support. 

We have validated your reported query “How to display weekday in TimelineMonthView” at our end. We have achieved your requirement with the help of the dateheaderTemplate property of the Schedule like the below code. We have prepared a sample for your reference and it can be available below. 

[Index.razor] 
@using Syncfusion.Blazor 
@using Syncfusion.Blazor.Schedule 
@using System.Globalization 

<SfSchedule TValue=object Height="360px"> 
    <ScheduleTemplates> 
        <DateHeaderTemplate> 
            <div class="templatewrap"> 
                <span>@(getDateDetails((context as TemplateContext).Date))</span> 
            </div> 
        </DateHeaderTemplate> 
    </ScheduleTemplates> 
    <ScheduleViews>  
        <ScheduleView Option="View.TimelineMonth"></ScheduleView>  
    </ScheduleViews>  
</SfSchedule> 

@code{  
    public static string getDateDetails(DateTime date)  
    {  
         return date.ToString("ddd, dd", CultureInfo.InvariantCulture);  
    }  


Kindly try the above sample and get back to us if you need any further assistance. 

Regards, 
Ravikumar Venkatesan 


Marked as answer

UH Uwe Hein August 6, 2020 06:22 PM UTC

Hi Ravikumar,

   thank you for your fast answer. Exactly what I was looking for.

     regards

       Uwe


VM Vengatesh Maniraj Syncfusion Team August 10, 2020 03:32 AM UTC

Hi Uwe, 

You are most welcome. 

We are happy that our solution has fulfilled your requirement. 

Please get in touch with us if you need any further assistance. 

Regards, 
Vengatesh 


Loader.
Up arrow icon