question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jump to Month of Selected Date

See original GitHub issue

Hi @rebeccaXam ,

I want calendar view to jump to the date selected from datepicker.

I have tried Calendar.ForceRedraw() but it’s not working. I also tried Calendar.SelectedDates.Add() and that doesn’t work too.

Please suggest a way to redraw the calendar and jump to month of selected date.

  • Prakash

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
ali-h2010commented, Jul 12, 2018

@prakashsatyani , I am not sure if this is sarcasm or not. I will try to test myself and see what is the issue.

I am not actually one of the contributors of this repository but I really liked this free awesome component and want to support it in the future.

1reaction
ali-h2010commented, Jul 12, 2018

I think that you need to just change the StartDate and set it to whatever new value is selected from the picker. In XamForms.Controls.Calendar/XamForms.Controls.Calendar/Calendar.MonthNavigation.cs when the user click on the right or left arrow, a new date is created and the day is set to 1 of that new month. `protected void RightArrowClickedEvent(object s, EventArgs a) { if (CalendarViewType == DateTypeEnum.Year) { NextPrevYears(true); } else { NextMonth(); } RightArrowClicked?.Invoke(s, new DateTimeEventArgs { DateTime = StartDate }); RightArrowCommand?.Execute(StartDate); }

	public void NextMonth() 
	{
		StartDate = new DateTime(StartDate.Year, StartDate.Month, 1).AddMonths(ShowNumOfMonths);
	}`
Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-calendars jump to a selected month
Solved this issue by adding both props key and current. Prop key triggers re-rendering const CalendarScreen = () => { const [current, ...
Read more >
Slicer with selected date range (-12 month jumps)
Solved: Hello, i would like to have a slicer were everytime i select a Month and a Year it will return the relative...
Read more >
Show All Months after/before selected Date in PowerBI
Show All Months after/before selected Date in PowerBI | MiTutorials How to Create a Calendar Table ...
Read more >
How to get the Latest Selected Date from Date Slicer in a Field
This is the end date that user can select and in this video I'll show you how can get this date in a...
Read more >
Jump to a specific date in the Calendar
The easiest way to do this would be to use the Go To Date command of the Calendar. To open the dialog for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found