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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

HeaderView causes NullReferenceException

Thread ID:

Created:

Updated:

Platform:

Replies:

142048 Jan 16,2019 02:55 PM UTC Jan 17,2019 01:14 PM UTC Xamarin.Forms 3
loading
Tags: SfCalendar
William
Asked On January 16, 2019 02:59 PM UTC

Hi there, 

Have been trying out the SfCalendar for my app. The standard control seems to work fine but when I try to change the HeaderView I get a NullReferenceException. Using version 16.4.0.47. My code is:

         
       
           
       
   

Have attached the stack traces on iOS and Android respectively.

Many thanks

Will

Attachment: Stack_Traces_bcc63718.zip

William
Replied On January 16, 2019 02:59 PM UTC

    <sf:SfCalendar x:Name="Bob">
        <sf:SfCalendar.HeaderView>
            <Label Text="Bob"/>
        </sf:SfCalendar.HeaderView>
    </sf:SfCalendar>

William
Replied On January 16, 2019 05:30 PM UTC

I get the same NullReferenceException when I try to customize the CellTemplate, and with other controls when I customize appearance.

What I have discovered is that using stable Xamarin.Forms 3.4.0.1009999 there is no issue but with 4.0.0.62955-pre2 I get the Exceptions. Seems there is a breaking change coming to many Syncfusion components.

Arun siva [Syncfusion]
Replied On January 17, 2019 01:14 PM UTC

Hi William, 
 
Thanks for contacting Syncfusion support, 
 
We have analyzed the reported issue “NullReferenceException throws when sets header view for calendar with Xamarin forms version 4.0.0.62955 pre-2” and as this version of Xamarin Forms is a prerelease version, hence it may has some bugs in this case the Platform property of VisualElement return as null, while get the property using Reflection, hence kindly use the latest stable version (3.4.0.1009999) of Xamarin Forms, in which it works fine without the exception. 
Kindly revert us if you have any concern. 
 
Regards, 
Arun Siva R

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;