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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to get this custom control into sfDataForm

Thread ID:

Created:

Updated:

Platform:

Replies:

148970 Nov 9,2019 08:34 PM UTC Nov 26,2019 01:56 PM UTC Xamarin.Forms 2
loading
Tags: SfDataForm
David Brenchley
Asked On November 9, 2019 08:34 PM UTC

                        <inputLayout:SfTextInputLayout                       
                        Hint="Credit Card Number"
                        LeadingViewPosition="Inside" >
                            <syncmaskededit:SfMaskedEdit ValueMaskFormat="ExcludePromptAndLiterals" 
                                  Value="{Binding CardNumber}" Keyboard="Numeric" 
                                  Mask="0000 0000 0000 0000" MaskType="Text"
                                  ValidationMode="KeyPress"  />
                            
                            <inputLayout:SfTextInputLayout.LeadingView>
                                <Image Source="{Binding CardNumber ,Converter={StaticResource CardConverter}}"
                               HeightRequest="30"/>
                            </inputLayout:SfTextInputLayout.LeadingView>
                        </inputLayout:SfTextInputLayout>

I want to be able to put this into sfDataForm so that I can validate it, but have issues with all the customization,   I've tried via AutoGeneratingDataFormItem, but when I create the TextInputLayoutSettings, the LeadingView is a Label and won't let me put in an Image.  The image also needs the converter as it changes to visa/disc, etc. depending on what is entered.  The sfDataForm seems to be more of a pain then what it solves.  Would like to use DataAnnotation or INotifyDataErrorInfo for validation.

Ajith Kumar Senthil Kumar [Syncfusion]
Replied On November 11, 2019 12:34 PM UTC

Hi David Brenchley, 
  
Thanks for contacting Syncfusion support. 
 
Query 1: 
 Based on the provided information, your requirement of “SfMaskedEditText editor with TextInputLayout in SfDataForm” can be achieved using the inbuild MaskedEditText Editor. 
 
Please refer our online user guide documentation regarding customizing of MaskedEditText editor by the following link, 
 
 
Query 2: 
We can able to reproduce the reported issue “Image is not loaded in Leading and Trailing view since intialized as Label” and logged issue report for the same. We will fix the issue and include the issue fix in our next Weekly Nuget release update which is planned to roll out on November 26, 2019. We appreciate your patience until then. 
  
You can track the status of this report through the following feedback link, 
 
  
Note: The provided feedback link is private, you need to login to view this feedback. 
 
Query 3: 
 
We assume that you are trying to use DataAnnotation or INotifyDataErrorInfo for validation and it can be achieved using the inbuild validations.  
 
Please refer our online user guide documentation regarding validations by the following link, 
 
  
Regards,
Ajith  
 


Ajith Kumar Senthil Kumar [Syncfusion]
Replied On November 26, 2019 01:56 PM UTC

Hi David Brenchley 
   
Thank you for your patience. 
 
We have fixed the reported issue of “Image is not loaded in Leading and Trailing view since intialized as Label”. But we have not included this fix in this weekly nuget since we need to ensure all use cases. We will include the issue fix in our upcoming 2019 Volume 4 Beta release which is planned to roll out by first week of December 2019. We appreciate your patience until then. Please let us know, if you need issue fix patch earlier. 
 
Regards, 
Ajith

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

Live Chat Icon For mobile
Live Chat Icon