tweak position when opening the SfDateRangePicker popup

Hi,

in my scenario I don't want to display the whole SfDateRangePicker in the UI. Instead, I just want to open the popup control when clicking a button and process the selected range behind the scenes...

I'm able to open it via ShowPopupAsync and tried to hide the inline control in a "hidden" wrapper container.

This feels like a "dirty workaround" and is also not working very well unfortunately, as the popup then opens (which is good) but is located on the top-left position on the screen instead in the place, where the "hidden" component is located...


Question: is there a possibility to achieve this somehow? I thought about i.e. setting something like a Target property referencing the Id of the button, that should open it. The popup could then be opened relative to this target component...


I checked through all the docs and played around with it but didn't find a real solution so far...


Thanks for your help in advance!


Benjamin


1 Reply

SP Sureshkumar P Syncfusion Team February 3, 2022 09:21 AM UTC

Hi Benjamin, 
 
We have logged this as feature request and this support will be included in any one of our upcoming releases. We will implement the feature based on the customer request count and priority.   
 
You can track the status of this feature from the below feedback link. 
 
 
Until the feature implementation, we suggest you use the showpopupAsync method workaround to achieve your requirement. We will intimate once the feature is implemented from our end in the above mentioned feedback.  
 
Regards, 
 
Sureshkumar P 


Loader.
Up arrow icon