Fragment in tabs of view Pager not showing chart. System.NullReferenceException: Object reference not set to an instance of an object.

I logged it as an incident but should have being here. 

Looking for some assistance in getting my charts to show in a Viewpager fragement.
A new instance of a fragment is created for each tab. 

Example in my dropbox (Click Here)

Currently I just want to get a graph on each fragment.  (Now it will be the same graph and same data)

The programming as in the example is building fine when I am not adding the chart to the layout. 

             layout.AddView(reloadData);
            layout.AddView(labelFragment);
            //layout.AddView(chart);
            return layout;

Please uncomment the line above in PageFragemt.cs (line 101) and attempt to build. 
Stepping through the program is fine. 
Then at the end. Presented is System.NullReferenceException: Object reference not set to an instance of an object.

I have tried multiple ways and in the example. I am using the Items Source example from the Syncfusion site. 

Can you please see if I am doing something wrong and assist what I should be doing. 
Thank you.


1 Reply

MP Michael Prabhu M Syncfusion Team July 5, 2018 01:02 PM UTC

Hi Paul,  
Thanks for using Syncfusion products.   
We would like to inform you that the reported issue is already fixed in our latest Essential Studio Volume 2 release. Please upgrade to 16.2.0.42 version to resolve this. If you are already using "16.2.0.42" can you clear the cache of your nugets and check?  
Please let us know, you need further assistance.  
Thanks,  
Michael 

Loader.
Up arrow icon