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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

24hour format

Thread ID:

Created:

Updated:

Platform:

Replies:

124070 May 13,2016 05:38 AM UTC May 17,2016 07:20 AM UTC Xamarin.Forms 4
loading
Tags: SfSchedule
Siggi
Asked On May 13, 2016 05:38 AM UTC

Hello,
I try to set the time format in the weekview for the hours at the left side to 24hour format instead of am/pm.

 <xForms:SfSchedule ScheduleView="WeekView">
      <xForms:WeekViewSettings>
        <xForms:WeekLabelSettings TimeFormat="hh"/>
      </xForms:WeekViewSettings>
    </xForms:SfSchedule>
This doesn´t work, do you have any hints? Is it possible at all?

Thanks,
sull

Siggi
Replied On May 14, 2016 08:16 PM UTC

Hello again,
I forgot to mention that I tried using the Schedule in a XAML page.
When doing the configuration in code behind timeformat = "HH" does the job.


Joy Oyiess Rex  K [Syncfusion]
Replied On May 16, 2016 11:25 AM UTC

Hi Siggi,

Thanks for your interest in Syncfusion products.

We have analyzed your requirement of customizing the TimeFormat of WeekLabelSettings to 24 hours format, in order to achieve this, the value for TimeFormat should be set as “HH”. As WeekLabelSettings is a complex property of WeekViewSettings, it can be represented in XAML as mentioned below,

Code Snippet:
 
  
<schedule:SfSchedule x:Name="schedule"  ScheduleView="WeekView" >
       <schedule:SfSchedule.WeekViewSettings>
            <schedule:WeekViewSettings >
                <schedule:WeekViewSettings.WeekLabelSettings>
                    <schedule:WeekLabelSettings TimeFormat="HH" />
                </schedule:WeekViewSettings.WeekLabelSettings>
            </schedule:WeekViewSettings>
        </schedule:SfSchedule.WeekViewSettings>
 </schedule:SfSchedule>
 


Please let us know, if you need any further assistance.

Regards,
Joy Rex. 


Siggi
Replied On May 16, 2016 12:37 PM UTC

Hi,
your provided solution works, that was of course my fault.
Thank you very much.
Regards,
Siggi

Swathi Gopal [Syncfusion]
Replied On May 17, 2016 07:20 AM UTC

Hi Siggi, 
 
Thanks for your update. We are glad that your issue got resolved. 
 
Please let us know if you need any further assistance. 
 
Regards, 
Swathi G 


CONFIRMATION

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.

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

;