- Home
- Forum
- Xamarin.Forms
- SfCalendar view not refreshing on month change on Android
SfCalendar view not refreshing on month change on Android
Thanks!
Richard
Hi John,
Thank you for contacting Syncfusion Support.
Query : "Issue with events indication in SfCalendar (Android)"
We have analyzed the reported issue in our side with our latest version. But we were unable to reproduce the reported issue. So could you please provide following information about this issue.
1)Device or Emulator (In which we can reproduce the reported issue)
2)API level of the Device
3)Essential Studio Version
4)If possible could you please provide issue reproducing sample
It will help us to provide appropriate solution on this.
Please find the sample in which we have checked the reported issue in our side in below
Sample:https://www.syncfusion.com/downloads/support/forum/129201/ze/DataSourceUpdateIssue-1948120155
Regards,
Rathanakumar S.
We were able to reproduce the reported issue "Blackout dates not update dynamically" from our side. A support incident to track the status of the issue has been created under your account. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Regards,
Rathanakumar S
We have created a new support incident under your account to track the status of the SfSchedule related query. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please let us know, if you have any query.
Regards,
Subburaj Pandian V
{
public partial class Calendar : ContentPage
{
private string _holddata = null;
private string _mxdata = null;
private string _authdata = "";
private string _authheader = "";
private List<string> _loadedMonths = null;
SfCalendar calendar;
CalendarEventCollection col = new CalendarEventCollection();
{
calendar = new SfCalendar();
calendar.ShowInlineEvents = true;
calendar.ShowNavigationButtons = true;
calendar.MonthChanged += LoadNewMonth;
LoadFlights(DateTime.Now);
_loadedMonths.Add(DateTime.Now.Month.ToString());
layout.Children.Add(calendar);
{
vm.IsLoading = true;
string startDate = currDate.Month.ToString() + "/1/" + currDate.Year.ToString();
string endDate = currDate.Month.ToString() + "/" + DateTime.DaysInMonth(currDate.Year, currDate.Month).ToString() +
Task<bool> success = GetData(startDate, endDate);
}
private void LoadNewMonth(object sender, MonthChangedEventArgs e)
{
DateTime currDate = e.args.CurrentValue;
DateTime prevDate = e.args.PreviousValue;
if (!_loadedMonths.Contains(currDate.Month.ToString()))
{
_loadedMonths.Add(currDate.Month.ToString());
LoadFlights(currDate);
}
calendar.MoveToDate = e.args.CurrentValue;
}
{
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", _authheader);
client.MaxResponseContentBufferSize = 512000;
Uri flightUrl = new Uri(String.Format(Constants.ServiceUrl + "/getflights?start=" + start + "&end=" + end, string.Empty));
try
{
HttpContent responseContent;
var response = await client.GetAsync(flightUrl);
if (response.IsSuccessStatusCode)
{
responseContent = response.Content;
_flightdata = responseContent.ReadAsStringAsync().Result;
var flightobj = JsonConvert.DeserializeObject<List<Flight>>(_flightdata);
foreach (Flight f in flightobj)
{
CalendarInlineEvent ev = new CalendarInlineEvent();
ev.Subject = f.ORIGIN + "-" + f.DEST;
ev.StartTime = Convert.ToDateTime(f.LOCALLEAVE);
ev.EndTime = Convert.ToDateTime(f.LOCALARRIVE);
ev.Color = Color.FromHex("68A0ED");
col.Add(ev);
}
}
calendar.MoveToDate = Convert.ToDateTime(start);
vm.IsLoading = false;
return true;
}
catch (Exception e)
{
Page p = new Page();
await p.DisplayAlert("ERROR!", e.ToString(), "Close");
return false;
}
Thanks for your update.
We were unable to reproduce the reported issue from side. A support incident has been created under your account. Please log on to our support website to check for further updates.
Regards,
Rathanakumar S.
- 8 Replies
- 5 Participants
-
JK John Kirksey
- Mar 3, 2017 09:01 PM UTC
- Mar 9, 2017 12:03 PM UTC