We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Problem referencing SyncFusion assemblies for SfDataGrid in UWP

Hello,

I am just getting started using the DataGrid in a UWP application and I am experiencing problems referencing the required DLLs.

I read  this tutorial  and followed the instructions under Assembly deployment, adding references to the following 4 assemblies:

Syncfusion.Data.UWP
Syncfusion.SfGrid.UWP
Syncfusion.SfInput.UWP
Syncfusion.SfShared.UWP

With this step complete and a DataGrid control added to a XAML page, the project builds correctly but throws the following exception when the page is rendered:

The text associated with this error code could not be found.

Cannot create instance of type 'Syncfusion.UI.Xaml.Grid.SfDataGrid' [Line: 18 Position: 3]

I am able to get the application to run correctly by replacingthe explicit DLL references with a reference to the SynFusion Controls for UWP XAML extension.

I see that this is also how you reference the SyncFusion controls from within the sample browser application. However, I don't want to do this because it adds 50MB to the size of my app package.

Can you please tell me the correct procedure for referencing just the DLLs that my application needs.

Many thanks, Tim

3 Replies

SV Srinivasan Vasu Syncfusion Team June 30, 2016 03:41 AM UTC

Hi Tim, 
 
Thanks for contacting Syncfusion support. 
 
We have checked your query and in our side the UWP sample is working fine while referring assemblies manually. Could you please check whether the below highlighted line has been included in your XAML file.  
 
XAML: 
 
<Page 
    x:Class="AddNewRowEditing.MainPage" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:local="using:AddNewRowEditing" 
    xmlns:syncfusion="using:Syncfusion.UI.Xaml.Grid" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d"> 
 
If still the problem is not resolved in your side, we would set up a web meeting with you to look into it and provide resolution. Would you please let us know of your availability for this? Our team will make every effort to have this scheduled on a date and time according to your convenience. 
 
Regards, 
Srinivasan 
 



TC Tim Coulter June 30, 2016 05:04 AM UTC

Hi Srinivasan,

Many thanks for your response.

Yes, my app includes the XAML namespace declaration that you specified and it is working perfectly when the Syncfusion libraries are referenced via the SynFusion Controls for UWP XAML extension.

I am happy to do a web meeting with you. I am available from 8AM to 8PM CET 7 days per week.

Thank you,
Tim


EM Elavarasan M Syncfusion Team July 1, 2016 06:57 AM UTC

Hi Tim, 
 
Thanks for your reply. 
 
We have created the incident under your account to track the status of this requirement. Please log on to our support website to check for further updates. 
 
Regards,
Elavarasan M 


Loader.
Live Chat Icon For mobile
Up arrow icon