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
close icon

Label position in DataForm

Is it possible for whole form have label position on top but for one control on left (or right).
I created login page using control and have remember me field and it's looks better when switch next to label and on middle of the page

Here is screenshot of the form:



2 Replies

RZ Roman Zhitnitskiy February 6, 2019 07:34 PM UTC

Here is model class

public class LoginViewModel : BaseViewModel
    {
        private string _varUserName = default(string);
        [Display(Description = "Your email is your User Name", Prompt = "Enter your e-mail", Name = "User name", Order = 0)]
        [Required(ErrorMessage = "E-mail is required")]
        public string UserName
        {
            get { return _varUserName; }
            set { SetProperty(ref _varUserName, value); }
        }


        private string _varPassword = default(string);
        [DataType(DataType.Password)]
        [Display(Prompt = "Enter password", Order = 1)]
        [Required(ErrorMessage = "Password is required")]
        [StringLength(20, MinimumLength = 6, ErrorMessage = "Password should be at least 6 charachter long and contains upper and lower case charactewrs at at least 1 digit")]
        public string Password
        {
            get { return _varPassword; }
            set { SetProperty(ref _varPassword, value); }
        }

        private bool _varRememberMe = default(bool);
        [Display(Name = "Remember me?")]
   
        public bool RememberMe
        {
            get { return _varRememberMe; }
            set { SetProperty(ref _varRememberMe, value); }
        }
    }
  


SG Swathi Gopal Syncfusion Team February 7, 2019 12:35 PM UTC

Hi Roman, 
 
Thanks for contacting Syncfusion Support.  
 
Currently, we don’t have direct support to Support to set LabelPosition for each DataFormItem in SfDataForm Xamarin Forms. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts. We have already added this feature request to our database. You can now track the current status of this feature request here. 
 
 
At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. 
 
You can also communicate with us regarding the open features any time using our Feature Report page. 
 
 
Regards,
Swathi G
 


Loader.
Live Chat Icon For mobile
Up arrow icon