Hello again,
I'm trying to make SfDataGrid, but unfortunately, I'm getting System.StackOverflowException when MAUI is trying to show the SfDataGrid.
System.StackOverflowException
HResult=0x800703E9
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
The exception is raised in App.g.i.cs in this method:
static void Main(string[] args)
{
XamlCheckProcessRequirements();
global::WinRT.ComWrappersSupport.InitializeComWrappers();
global::Microsoft.UI.Xaml.Application.Start((p) => {
var context = new global::Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext(global::Microsoft.UI.Dispatching.DispatcherQueue.GetForCurrentThread());
global::System.Threading.SynchronizationContext.SetSynchronizationContext(context);
new App();
});
}
Right before exception is raised, I can see that I am in this section of the code in XamlTypeInfo.g.cs:
private global::TaskPlannerApp.TaskPlannerApp_XamlTypeInfo.XamlMetaDataProvider _AppProvider
{
get
{
if (__appProvider == null)
{
__appProvider = new global::TaskPlannerApp.TaskPlannerApp_XamlTypeInfo.XamlMetaDataProvider();
}
return __appProvider;
}
}
And right after this, I can see tons of Debug Output like this:
Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics: Warning: 'Title' property not found on 'TaskPlannerApp.ViewModels.BacklogViewModel', target property: 'Syncfusion.Maui.DataGrid.DataGridTextColumn.CacheDisplayBinding'
Finally, that exception is raised.
I have added snippets of my code in the attachment.
Thank you for your help.
Regards,
Maros
Same Problem here. Do you use the MVVM Toolkit?
Hi Maros,
This is already a known issue on our side, and it will be addressed in our upcoming weekly release, scheduled for October 8, 2024. We appreciate your patience and understanding in the meantime. For your reference, we have shared the feedback link below:
Feedback Link : 61269
This issue appears in version 8.0.90 of the Microsoft.Maui.Controls and Microsoft.Maui.Controls.Compatibility . In the meantime, you can roll back to version 8.0.82, which is stable and should help resolve the issues you're currently experiencing.
Regards,
Sethupathy D.
Yes I do, but it seems like roll back to version 8.0.92 for the Microsoft.Maui.Controls and Microsoft.Maui.Controls.Compatibility works for me. :)
Hello Sethupathy,
Thanks for letting me know.
Rollback resolved the problem and I'm awaiting for the new release.
Regards,
Maros G.
Hi Maros,
We are glad to inform you that the reported issue regarding the “SfDataGrid no longer works with dot net maui 8.0.90” has been resolved. This fix has been incorporated into our latest weekly NuGet release. To benefit from this fix, we recommend updating your DataGrid package to version 27.1.50.
https://www.nuget.org/packages/Syncfusion.Maui.DataGrid
Root Cause,
Since the bindable property of CacheDisplayBinding doesn't set and returns null always even if we set non nullable value. So, the process is repeating and throwing Stack Overflow exception.
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.
Regards,
Sethupathy D.