Get current position of SfDialog

I would like to get the current position of the SfDialog on the page in order to save it / restore it for later.


Is there a way?


1 Reply

BS Buvana Sathasivam Syncfusion Team February 21, 2022 11:25 AM UTC

Hi Tobias, 

Greetings from Syncfusion support. 

We suggest setting the AllowPrereder property set to true, which maintains the position whenever you open and close the dialog. Because it will maintain the dialogue element in the DOM. Currently, dialogue elements are destroyed and rendered each time you open and close the dialog. You can also use the GetDimension public method to get the current height and width of the dialog. 


Regards, 
Buvana S 


Loader.
Up arrow icon