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.
Unfortunately, activation email could not send to your email. Please try again.

UWP release mode doesnt work

Thread ID:

Created:

Updated:

Platform:

Replies:

128607 Jan 31,2017 09:55 PM Mar 13,2017 01:59 AM Xamarin.Forms 3
loading
Tags: SfDataGrid
Emil
Asked On January 31, 2017 09:55 PM

my application works fine in debug mode on uwp but once I change to release mode. All the syncfusion xamarin tools are not appearing. 

Divakar Subramaniam [Syncfusion]
Replied On January 31, 2017 11:06 PM

Hi Emil, 
 
  
 
Thanks for contacting Syncfusion Support. 
 
 
We have checked your query. This is a known framework issue in UWP platform. Custom controls will not render properly in the Release mode in UWP platform. We have already reported this issue in Bugzilla and you can refer the below Bugzilla report for more details about this issue. 
 
 
 
However, you can overcome this issue in sample level by initializing the SfDataGrid assemblies in App.xaml.cs in UWP project as in below code snippet. 
 
// In App.xaml.cs 
 
protected override void OnLaunched(LaunchActivatedEventArgs e) 
{ 
    // Do not repeat app initialization when the Window already has content, 
    // just ensure that the window is active 
    if (rootFrame == null) 
    { 
        // Create a Frame to act as the navigation context and navigate to the first page 
        rootFrame = new Frame(); 
 
        rootFrame.NavigationFailed += OnNavigationFailed; 
 
        List<Assembly> assembliesToInclude = new List<Assembly>(); 
 
        //Now, add in all the assemblies your app uses 
        assembliesToInclude.Add(typeof(SfDataGridRenderer).GetTypeInfo().Assembly); 
 
        //Also do this for all your other 3rd party libraries 
 
        Xamarin.Forms.Forms.Init(e, assembliesToInclude); 
         
        //Xamarin.Forms.Forms.Init(e); 
 
        if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) 
        { 
            //TODO: Load state from previously suspended application 
        } 
 
        // Place the frame in the current Window 
        Window.Current.Content = rootFrame; 
    } 
} 
 
 
 
We have attached a simple sample with Release mode for your reference and you can download the same from the below location. 
 
 
 
Please refer the below UG link for more details, 
 
 
 
 
Regards, 
Divakar. 


Halil Dogan Bolak
Replied On March 10, 2017 10:46 AM

Divakar,

I have a question - what do you mean by the comment line in your sample stating that we should add all other 3rd party assemblies ? I have references to SfNavigationDrawer and various AWS dll's in the UWP project. Do I need to add any in to your workaround code ?

My problem is as follows - I have implemented pull to refresh in the PCL and it works very well on iOS but does not work in UWP. I am running the UWP in Debug mode and not in the Release mode.

Thank you.



Vimal Prabhu Manohkaran [Syncfusion]
Replied On March 13, 2017 01:59 AM

Hi Halil,

Thanks for the update.

Regarding your first query "what do you mean by the comment line in your sample ? Do I need to add any in to your workaround code " , yes you have to add the renderers to the AssembliesToInclude list for all the controls that you are using , so that the control’s renderers are initialized and loaded properly without any crashes in release mode for UWP platform.

Regarding your second query of pull to refresh not working in SfDataGrid for UWP, we have checked the same from our side and is working properly for us. Please refer the video samples of the test from the below link.

Video Link : http://www.syncfusion.com/downloads/support/forum/128607/ze/174897-1687052632

Kindly ensure that you have followed the steps mentioned in the below UG document on how to perform pull to refresh in SfDataGrid

UG link : https://help.syncfusion.com/xamarin/sfdatagrid/pull-to-refresh

If your issue persists, kindly revert us with a working sample replicating the issue and clear replication procedure. This will enable us to help you better and resolve your issue the soonest.

Regards,
Vimal Prabhu
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;