year selection or month selection not working

When i am trying to add SfDateRangePicker inside OverlayEntry it works but when i try to change month or year it wont work, where as SfDateRangePicker month selection and year selection works fine on normal view screen. This issue found in linux debug build and chrome release (web).

below video link for reference
https://drive.google.com/file/d/1CC8qQygNgVf83PJpb1-IjD7RAD2EapRf/view?usp=sharing


13 Replies

IR Indumathi Ravichandran Syncfusion Team December 6, 2021 12:57 PM UTC

Hi Mohammed, 
 
Thank you for contacting Syncfusion support. 
 
Currently, we are validating the issue “Month and year selection not working while placing SfDateRangePicker inside OverlayEntry”. We will validate and update you the further details on or before December 8, 2021. We appreciate your patience until then. 
 
Regards, 
Indumathi R 



IR Indumathi Ravichandran Syncfusion Team December 8, 2021 12:48 PM UTC

Hi Mohammed, 
 
Due to technical hurdles, we are checking the mentioned issue “Month and year selection not working while placing SfDateRangePicker inside OverlayEntry” in source level. We will validate and update you the further details on or before December 10,2021. We appreciate your patience until then. 
 
Regards, 
Indumathi R 



IR Indumathi Ravichandran Syncfusion Team December 9, 2021 11:44 AM UTC

Hi Mohammed, 
 
Based on the shared information and video, we have checked the mentioned issue “Month and year selection not working while placing SfDateRangePicker inside OverlayEntry” with the simple sample. While selecting dates in picker FocusNode lost that focus, so the specified control was removed from OverlayEntry and again added, then control was re-initialized and moves to the default view of the picker, and this is not an issue from SfDateRangePicker. We have ensured the same scenario with our SfCalendar control also, the selection was not working due to focus lost.  
 
We have checked the same scenario with the DropDown widget and selection was working fine. We have attached the tested sample for the same. Please find the sample from the following link. 
 
 
We hope that the shared information helps you. If possible, can you please share your requirement with OverlayEntry widget clearly, it would be helpful for us to analyze and provide you a solution at the earliest. 
 
Regards, 
Indumathi R 



MA Mohammed Abrar Ul December 10, 2021 06:42 AM UTC

Thanks, Indumathi R for reference.

But iam facing an issue in the format which i mentioned in below code (drive link), Please refer and suggest. where iam facing the same issue till know.



IR Indumathi Ravichandran Syncfusion Team December 10, 2021 09:21 AM UTC

Hi Mohammed, 
 
We can’t find your mentioned drive link in the last update. If possible, can you please share the drive link to us, so that we will check and update you the further details. 
 
Regards, 
Indumathi R 



MA Mohammed Abrar Ul December 11, 2021 03:32 AM UTC



IR Indumathi Ravichandran Syncfusion Team December 13, 2021 09:30 AM UTC

Hi Mohammed, 
 
Thank you for the update. 
 
Based on the shared code snippet, we have checked the “Overlay assertion issue in the SfDateRangePicker while placing inside OverlayEntry”. Before removing the entry, we need to check the condition (entry is null or not). So, we have checked the sample based on this condition and sample working fine as expected. We have attached the tested sample for the same. Please find the sample from the following link. 
 
 
We hope that this helps you. Please let us know if you need further assistance. 
 
Regards, 
Indumathi R 



MA Mohammed Abrar Ul December 13, 2021 11:01 AM UTC

Sorry, to say that the issue is still exists in the sample which has shared, i have tested. Its a request to suggest some fixes or any alternative way to use in this concept.

Where as i have also tried flutter_portal (https://pub.dev/packages/flutter_portal)  instead of overlayentry still facing the same issue.



IR Indumathi Ravichandran Syncfusion Team December 14, 2021 12:09 PM UTC

Hi Mohammed, 
 
Thank you for the update. 
 
We have fixed the assertion-related exception in the shared sample and the sample was working fine as expected. We have attached the exception we have faced from your code snippet and also shared the video reference after issue fixing. 
 
Please find the video and exception screenshot from the following link. 
 
 
Are you facing the same exception, otherwise share the issue details clearly? It would be helpful for us to analyze and provide you with a solution at the earliest. 
 
Regarding Query: Its a request to suggest some fixes or any alternative way to use in this concept. 
 
We have already shared the sample with a dropdown widget for your requirement. Can you please once check the sample from the following link. 
 
 
 
Regards, 
Indumathi R  



MA Mohammed Abrar Ul December 15, 2021 05:46 AM UTC

Hi, Thanks for your update.

I have already shared both the things from my end, its okay i will share and explain again.

I need syncfusiondatepicker need to work in OverlayEntry (same code which i have already shared),
NOT IN DROPDOWN (​​you are sharing the sample).

I am unable to change MONTH and YEAR without arrows.

To make it easy understand about an issue i am uploading my code through bitbucket and video (google drive link) with full details mentioned in video.

Code in bitbucket (public access is given) : https://bitbucket.org/abrar312/oven_sf_datepicker/src/master/

Video
google drive link : https://drive.google.com/file/d/1XJoC8Wlh2ii0dV744j-EW9mr8VNUFPSb/view?usp=sharing

I am again mentioning this i need syncfusiondatepicker to work with all its features and functionalities in OverlayEntry, NOT IN DROPDOWN.



IR Indumathi Ravichandran Syncfusion Team December 15, 2021 12:54 PM UTC

Hi Mohammed, 
 
Thank you for the update. 
 
Based on the shred information, we have checked and SfDateRangePicker control has focus when interact with picker cells and it leads to makes focus lost in text field. So, the specified control was removed from OverlayEntry and again added, then control was re-initialized and moves to the default view of the picker with current date.  But, your requirement can be achieved by controller property in SfDateRangePicker and onTap callback in TextFormField.  
 
We have modified the sample based on your requirement. Please find the sample from the following link. 
 
 
We hope that this sample helps you. Please let us know if you need further assistance. 
 
Regards, 
Indumathi R 



MA Mohammed Abrar Ul December 15, 2021 02:32 PM UTC

Thanks for your response, its worked fine and my issue is resolved.



IR Indumathi Ravichandran Syncfusion Team December 16, 2021 05:00 AM UTC

Hi Mohammed, 
 
Thank you for the update. 
 
We are glad to know that the issue resolved at your end. Please get in touch with us if you would require any further assistance. 
 
Regards, 
Indumathi R 


Loader.
Up arrow icon