Selected cell does not keep the circle.

11 posts, 0 answers
  1. Adam
    Adam avatar
    25 posts
    Member since:
    Aug 2017

    Posted 03 Oct 2017 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
    25 posts
    Member since:
    Aug 2017

    Posted 06 Oct 2017 Link to this post

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

    Posted 06 Oct 2017 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
    12 posts
    Member since:
    Aug 2012

    Posted 10 Oct 2017 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
    665 posts

    Posted 13 Oct 2017 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
    12 posts
    Member since:
    Aug 2012

    Posted 13 Oct 2017 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
    12 posts
    Member since:
    Aug 2012

    Posted 13 Oct 2017 Link to this post

    Sorry for the mess-up. I meant to say "Does the calendar work okay with iQueryables?" 
  8. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    665 posts

    Posted 18 Oct 2017 Link to this post

    Hi, Jeffrey,

    We are not aware of any issues when the AppointmentsSource of the Calendar is an IQueryable so please make sure that the source collection is properly set at your end. If you believe the RadCalendar control is not working as intended, please share a sample so we can investigate the exact setup and provide you with a more detailed information.

    Have a great rest of the week.

    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
  9. Shalin
    Shalin avatar
    61 posts
    Member since:
    May 2015

    Posted 04 Jan 2019 Link to this post

    hi,

    i also experiencing the same behaviour only in iOS. my calendar is in week view mode. fetching data when selection date change event or display date change event, bindings as below, itemssource bind to observable collection in VM and fill data into that.

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

    selection is there until data fill into calendar. item source refreshing cause selection disappear. Only happens in iOS 

  10. Shalin
    Shalin avatar
    61 posts
    Member since:
    May 2015

    Posted 09 Jan 2019 Link to this post

    if i remove 

    AppointmentsSource="{Binding EventListForCal,Mode=TwoWay}"
     

    selection highlight keeps

  11. Yana
    Admin
    Yana avatar
    5044 posts

    Posted 09 Jan 2019 Link to this post

    Hello Shalin,

    Thank you for providing the details.

    Indeed, the selected date style is lost on iOS when the Calendar AppointmentsSource is updated. We have this issue logged in our public portal, you could follow the item below:
    https://feedback.telerik.com/xamarin/1366092-calendar-ios-the-visual-state-of-the-selected-date-is-lost-when-the-appointmentssource-is-changed

    in order to receive notifications on status changes. 

    I am afraid at this point we cannot commit to any timeframe for resolving this.

    I hope it is not a show-stopper for you.

    Regards,
    Yana
    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
Back to Top