Two month in view

Hi,

Please help me to display two month in single view with select range in xamarin forms mvvm.


7 Replies

SS SaiGanesh Sakthivel Syncfusion Team September 29, 2021 06:59 AM UTC

Hi Yogita, 
  
Thank you for using syncfusion products. 
  
#Regarding Two month view in SfCalendar 
We would like to inform you that we have already documentation about ‘How to show the two months view in SfCalendar’ in our Syncfusion Knowledge base in our website. Please refer to the following KB link for your reference. 
  
  
Please let us know if you have any concerns. 
  
Regards,
SaiGanesh Sakthivel



SP Sangavi Periyannan Syncfusion Team September 29, 2021 11:30 AM UTC

From: Yogita Magdum
Sent: Wednesday, September 29, 2021 6:50 AM
To: Syncfusion Support <[email protected]>
Subject: Re: Syncfusion Forum [169216] has a new reply - Two month in view 

Hi,  
  
Thanks for your support but I want to two month with Selectrange property in Xamarin MVVM.  

Please help me hiw to show two month in single view with selectedrange property in xamarin forms.  

Regards,  
Yogita Magdum 



SS SaiGanesh Sakthivel Syncfusion Team September 30, 2021 12:45 PM UTC

 
Thank you for the update. 
 
#Regarding Two month views with selectedRange property
We need more information about the requirement to achieve in SfCalendar. Could you please confirm us the exact requirement is same as in the image which will be help us to provide the better solution as soon as possible.
 
 
 
 
Please let us know if you have any concerns. 
 
Regards, 
SaiGanesh Sakthivel


SP Sangavi Periyannan Syncfusion Team October 1, 2021 10:08 AM UTC

From: Yogita Magdum 
Sent: Friday, October 1, 2021 5:58 AM
To: Syncfusion Support <[email protected]>
Subject: Re: Syncfusion Forum [169216] has a new reply - Two month in view 


Hi Team, 
PFA, the image and video references for how we wish to show two months in one view along with the SelectRange property using SfCalendar. Also, this type of calendar is nowadays mostly required everywhere as it is very user friendly. Hence, it would be great if we could develop the same using SfCalendar. 

Let's schedule a meeting if required for discussion. 


Regards, 
Yogita Magdum 

Forum_169216_files



SS SaiGanesh Sakthivel Syncfusion Team October 4, 2021 11:02 AM UTC

Hi Yogita, 
 
Thank you for the update. 
 
#Regarding SelectedRange date in SfCalendar 
We have checked the reported query from our end. Your requirement can be achieved with help of SelectionChanged event in SfCalendar. Please refer to the following code snippet for your reference. 
 
Code snippet 
private void Calendar_SelectionChanged(object sender, Syncfusion.SfCalendar.XForms.SelectionChangedEventArgs e) 
{ 
    if(calendar1.SelectedRange != (sender as SfCalendar).SelectedRange) 
    { 
        calendar1.ClearSelection(); 
    } 
    if (calendar2.SelectedRange != (sender as SfCalendar).SelectedRange) 
    { 
        calendar2.ClearSelection(); 
    } 
 
    if ((sender as SfCalendar).SelectedRange != null) 
    { 
        this.checkin.Text = ((sender as SfCalendar).SelectedRange as SelectionRange).StartDate.ToLongDateString(); 
        this.checkout.Text = ((sender as SfCalendar).SelectedRange as SelectionRange).EndDate.ToLongDateString(); 
    } 
} 
 
Please refer to the sample in the following locations for your reference. 
 
Please let us know if you have any concerns. 
 
Regards,
SaiGanesh Sakthivel



SP Sangavi Periyannan Syncfusion Team October 5, 2021 06:10 AM UTC

From: Yogita Magdum
Sent: Tuesday, October 5, 2021 1:56 AM
To: Syncfusion Support <[email protected]>
Subject: Re: Syncfusion Forum [169216] has a new reply - Two month in view 

Hi Team, 

Thank you for your response, but I want the SelectRange to enable the user to also be able to select a date range between two months and within one month.
 e.g: 1.User should be able to select a date range from 25 NOV to 12 DEC. 
        2.User should be able to select a date range from 1 NOV to 12 NOV. 
PFA, to get a better idea. 



Thanks  
Yogita 

File



SS SaiGanesh Sakthivel Syncfusion Team October 5, 2021 11:54 AM UTC

Hi Yogita, 
 
Thank you for contacting Syncfusion support. 
 
We have analyzed your requirement of “provide a support for two months in a view with Range selection in SfCalendar”, as of now calendar doesn’t have the support for the same. We have already logged a feature request for the same. We will implement this feature in any of our upcoming release.  
 
 
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal and cast your vote to make it count. 
 
Regards, 
SaiGanesh Sakthivel 


Loader.
Up arrow icon