Selected cell does not keep the circle.

6 posts, 0 answers
  1. Adam
    Adam avatar
    24 posts
    Member since:
    Aug 2017

    Posted 03 Oct Link to this post

    Hello!

    I am trying to find out if this is a bug or I am doing the things incorrectly I have binded the DisplayDate and SelectedDate with properties on My View Model like this:

    DisplayDate="{Binding CalendarDisplayDate, Mode=TwoWay}"
    SelectedDate="{Binding SelectedDate, Mode=TwoWay}"

     

    But for some reason when I swipe the calendar to the next month, the circle is just visible for a second or so and then it disappears. I have also set those properties when the user swipes the calendar like this:

    public override void DidNavigateToDate(TKCalendar calendar, NSDate date)
    {
        var dateTime = date.ToDateTime();
        if(Element == null)
        {
            return;
        }
     
        Element.SelectedDate = new DateTime(dateTime.Year, dateTime.Month, 1);
        Element.DisplayDate = new DateTime(dateTime.Year, dateTime.Month, 1);
        Element.LoadMonthAppointmentsCommand.Execute(null);
    }

     

    Here is a short video:
    GIF

  2. Adam
    Adam avatar
    24 posts
    Member since:
    Aug 2017

    Posted 06 Oct Link to this post

    Doe anyone know any leads about this issue?
  3. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    498 posts

    Posted 06 Oct Link to this post

    Hello, Adam,

    Would it be possible to provide a sample so we can have a more detailed look at the exact behavior? 

    Regards,
    Stefan Nenchev
    Progress 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
  4. Jeffrey
    Jeffrey avatar
    8 posts
    Member since:
    Aug 2012

    Posted 10 Oct Link to this post

    I have the same problem. When the user selects a day in the calendar, sometimes the appointment shapes inside the day cell disappear, sometimes not. Seems unpredictable.
  5. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    498 posts

    Posted 4 days and 17 hours ago Link to this post

    Hi, Jeffrey,

    Do you observe the issue in iOS only? Having a look at Adam's implementation, it seems that when a custom CalendarDelegate is assigned on the native control -- the SelectedDate binding is being broken and stops working. Can you please share more information on your setup so we can have it in mind and investigate what might be causing the issue?

    Regards,
    Stefan Nenchev
    Progress 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
  6. Jeffrey
    Jeffrey avatar
    8 posts
    Member since:
    Aug 2012

    Posted 4 days and 8 hours ago in reply to Stefan Nenchev Link to this post

    Yes, I was only having the problem inside iOS - but I never tested it in Android. I think I have it solved now. I was using an iQueryable as the data source. After adding a "ToList()" when assigning the data source, the problem seems to have gone away. Does the ListView work okay with iQueryables? I was using a linq statement from an entity framework data source to assign the data source.

  7. Jeffrey
    Jeffrey avatar
    8 posts
    Member since:
    Aug 2012

    Posted 4 days and 8 hours ago Link to this post

    Sorry for the mess-up. I meant to say "Does the calendar work okay with iQueryables?" 
Back to Top