Selected Date is Not Correct on iOS

4 posts, 0 answers
  1. Lama Chandrasena
    Lama Chandrasena avatar
    3 posts
    Member since:
    Jun 2010

    Posted 30 May 2015 Link to this post

    I have the following code:

        public class TestPage : ContentPage     {
            public TestPage () {
                var calendar = new RadCalendar () {  };
                calendar.SelectionChanged += async (object sender, Telerik.XamarinForms.Common.ValueChangedEventArgs<object> e) =>     {
                    var selectedDate = e.NewValue as DateTime?;
                    var culture = new CultureInfo("en-AU");
                    var title = string.Format("Options for {0}",selectedDate.Value.Date.ToString("d",culture));
                    var result = await this.DisplayActionSheet(title , "Cancel", null, "Option 1", "Option 2");
                };
                Content = calendar;
                Title = "Test";
            }
        }

    When I select a date on the calendar, the correct date is shown on the ActionSheet title on Android platform. On iOS platform, the date shown is the previous date.

    Is this a bug or am I doing something wrong? I need to display the selected date on my ActionSheet.

     

    Thanks.

  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 03 Jun 2015 Link to this post

    Hi Lama,

    Indeed, this is a bug. It is already fixed and the fix will be included in our next release, expected later this month.

    Best regards,
    Ves
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Yordan
    Yordan avatar
    14 posts
    Member since:
    Jan 2013

    Posted 28 Jul 2015 in reply to Ves Link to this post

    Ves,

    I am using the latest version of Telerik for Xamarin Forms and I can confirm that the bug is NOT fixed.

    Regards,
    Mihail

  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 30 Jul 2015 Link to this post

    Hi Mihail,

    Please, find attached a small example which works fine on my end. Please, give it a try and let us know if it yields correct results for you. Please, confirm that the version you are using is 2015.2.721.143.

    If the issue still appears in your project, please open a formal support ticket and send us a sample, which reproduces it, so that we can investigate it and get back to you with our findings. Thank you.

    Best regards,
    Ves
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner