Errors when using DataBinding of DataGrid in 0.4.0?

1 Answer 112 Views
DataGrid
Alexander
Top achievements
Rank 1
Alexander asked on 23 Aug 2021, 07:47 AM

When trying to debug my Application according to your manual (https://docs.telerik.com/devtools/winui/getting-started) this error appeared in my Debugging Session:

NameWertTyp
Exception{"Error HRESULT E_FAIL has been returned from a call to a COM component."}System.Exception {System.Runtime.InteropServices.COMException}

It happens when I'm trying to set the ItemsSource of my DataGrid.

I'm using the same declarations as described in your manuals example of using a DataGrid.

I've configured my environment according to the following specifications:

Visual Studio  16.11.1

Project Reunion 0.8.2

Telerik UI For Win UI 0.4.0 | I'm referring to the Win32-Assembly of Progress Control Panel

Are there any known issues with the current setup of 0.4.0 as described in this link (https://www.telerik.com/forums/is-winui-in-desktop-currently-supported)?

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 25 Aug 2021, 04:34 PM

Hello Alexander,

Thank you for the provided details.

I tried to replicate the exception you described following the same steps and settings, however, the created WinUI application runs correctly at my end. Please find it attached to my reply for your reference.

Can you please let me know if you're able to successfully run it on your machine?

If that is not the case, here are two troubleshooting steps I can suggest:

  • Try to use the 0.8.1 version of the Project Reunion instead as this is the version on which the Telerik.WinUI.Controls.dll is built.
  • Try to manually reference the Telerik.WinUI.Controls.dll in your project rather than use the NuGet package.
  • Add the following resource dictionary to your application's MergedDictionaries collection:
        <Application.Resources>
            <ResourceDictionary>
                <ResourceDictionary.MergedDictionaries>
                    <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
                    <ResourceDictionary Source="ms-appx:///Telerik.WinUI.Controls/Themes/Generic.xaml"/>
                </ResourceDictionary.MergedDictionaries>
            </ResourceDictionary>
        </Application.Resources>

Please let me know if any of these approaches resolves the exception at your end. I will be awaiting your reply.

Regards,
Dilyan Traykov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
DataGrid
Asked by
Alexander
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or