Unable to "Try/Catch" on SetPersistDataAsync

Occasionally SetPersistDataAsync will fail (can't figure out why.  the GridPersistData looks ok).  So I wanted to put a try/catch around it so I can reset or clear the GridPersistData.  But with the following, it doesn't catch the error:  Anyone know why?

            try

            {

            await TenantTripDestinationGrid.SetPersistDataAsync(userGridPageState.GridPersistData);

            }

            catch (Exception ex)

            {



1 Reply

GR Guhanathan Ramanathan Syncfusion Team May 16, 2025 11:51 AM UTC

Hi Samuel Matzen,

From your query we understand that you want to execute SetPersistDataAsync in Try/Catch block. But we are quite unclear about the cause or necessity of try catch block here. So, kindly share more details on issue you are facing in Grid. Also we request you to kindly provide the exact details you are trying to achieve, so that we can accurately validate and address the matter from our end.

Regards,
Guhanathan


Loader.
Up arrow icon