2 elements not showing up until first one is clicked

Hello,

I am facing a weird issue with the data form. Only FirstName and LastName are showing up when the page loads. Then, when I click on one of those 2 entries, the BirthDate and Gender properies show up as they should be. How can I make it to where all 4 show up on page load? 

The xaml and binding data that I am using is below

<sync:SfDataForm x:Name="dataForm" LayoutOptions="TextInputLayout" DataObject="{Binding Info}"/>

        private ProfileInfo info;
        public ProfileInfo Info
        {
            get
            {
                return this.info;
            }

            set
            {
                this.info = value;
                this.RaisePropertyChanged("Info");
            }
        }

        public class ProfileInfo : ViewModelBase
        {
            public ProfileInfo()
            {

            }

            private string firstName;
            public string FirstName
            {
                get
                {
                    return this.firstName;
                }

                set
                {
                    this.firstName = value;
                    this.RaisePropertyChanged("FirstName");
                }
            }
            private string lastName;
            public string LastName
            {
                get
                {
                    return this.lastName;
                }

                set
                {
                    this.lastName = value;
                    this.RaisePropertyChanged("LastName");
                }
            }
            private DateTime birthDate;
            public DateTime BirthDate
            {
                get
                {
                    return this.birthDate;
                }

                set
                {
                    this.birthDate = value;
                    this.RaisePropertyChanged("BirthDate");
                }
            }

            private GenderType gender;
            public GenderType Gender
            {
                get
                {
                    return this.gender;
                }

                set
                {
                    this.gender = value;
                    this.RaisePropertyChanged("Gender");
                }
            }

            public enum GenderType
            {
                Male,
                Female
            }
        }




1 Reply 1 reply marked as answer

SS SaiGanesh Sakthivel Syncfusion Team February 8, 2021 10:21 AM UTC

Hi Spencer, 
 
Thank you for using syncfusion support. 
 
#Regarding two elements not showing up until first one is clicked 
We have prepared the sample as per given code snippet and checked the reported scenario from our end. We regret to inform you that we could not replicate the reported scenario from our side.  Its working as expected. We have tested sample with AndroidX ( Realme x2 pro) device with API 29. We have attached the tested sample for your reference and you can download the same from the following location.  
   
   
Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with the following details,   
  
·       Share the issue replicate video.  
·       Share the issue replicate reproduce.  
·       Share the issue replicate the platform 
·       Share the syncfusion version and Xamarin form version used in sample.   

Regards, 
SaiGanesh Sakthivel
 


Marked as answer
Loader.
Up arrow icon