SfDialog.GetDimension() returns null

I'm trying to save the dimensions when the dialog gets closed. However, modal.GetDimension() returns null.

Here's the code: https://pastebin.com/BXGDa7jn


Relevant code:

    private async void SaveSettings()
    {
        var dimensions = await modal.GetDimension();
        Dictionary<string, string> windowData = new()
        {
            {"Width", $"{dimensions.Width}px"},
            {"Height", $"{dimensions.Height}px"}
        };
 
        await sessionStorage.SetItemAsync($"window-{UID}", windowData);
    }

5 Replies

BS Buvana Sathasivam Syncfusion Team February 16, 2022 05:38 PM UTC

Hi Tobias, 

Currently, we are validating your reported query. We will update you the further details in two business days on or before February 18, 2022. 

Regards, 
Buvana S 



BS Buvana Sathasivam Syncfusion Team February 18, 2022 06:17 AM UTC

Hi Tobias, 

We have considered the issue “GetDimension public method returned as null” as a bug from our end and the fix for the issue will be included with our upcoming weekly patch release on March 1, 2022. 

You can now track the current status of the report, review the proposed resolution timeline, and contact us for any further inquiries through this link:  

Regards, 
Buvana S 



BS Buvana Sathasivam Syncfusion Team March 3, 2022 11:37 AM UTC

Hi Tobias, 
We are facing some complexities in fixing the reported issue. So, we will include the fix for the issue with our upcoming patch release on 8th March 2022. 
  
Regards, 
Buvana S 



BS Buvana Sathasivam Syncfusion Team March 10, 2022 05:21 AM UTC

Hi Tobias, 

Due to its complexity, we couldn't include the fix for the issue "GetDimension public method returned as null". We will include the fix with our upcoming weekly patch release on March 15, 2022. We appreciate your patience until then. 

Regards, 
Buvana S 



BS Buvana Sathasivam Syncfusion Team March 15, 2022 05:59 PM UTC

Hi Tobias, 
 
Thank you for your patience. 
 
We have included the fix for the issue "GetDimension public method returned as null" with our package version 19.4.56. So, please upgrade the package to the latest to resolve the issue from your end. 
 

Regards, 
Buvana S 


Loader.
Up arrow icon