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

An editable DataFormDropDownEditor

Thread ID:

Created:

Updated:

Platform:

Replies:

145114 Jun 7,2019 06:49 AM UTC Jun 11,2019 06:53 AM UTC Xamarin.Forms 3
loading
Tags: SfDataForm
Soon Hua Khor
Asked On June 7, 2019 06:49 AM UTC

Hi,

May i know is that possible to make the DataFormDropDownEditor editable?

I understand that it is actually loaded with the SfComboBox but i can't find the IsEditableMode properties in DataFormDropDownEditor. I would like to allow user to enter keyword with suggestion(s) displayed. It will be tedious if user has to scroll through the long list to find a specific item.

Thank you.


Regards,
Soon Hua



Subburaj Pandian Veluchamy [Syncfusion]
Replied On June 10, 2019 11:15 AM UTC

  
Thank you for contacting Syncfusion support. 
  
We have analyzed the reported query “Is it possible to edit DataFormDropDownItem’s editor?” as of now DataForm does not have support to edit DropDownItem’s editor. Your requirement can be achieved by using theCustomEditor inheriting DataFormDropDownEditor class, and in OnInitializeView() method set IsEditableMode. Kindly refer our UG documentation to know more information about creating custom editor in DataForm. 
  
  
Code Snippet: 
    public class CustomDropDownEditor : DataFormDropDownEditor 
    { 
        public CustomDropDownEditor(SfDataForm dataForm) : base(dataForm) 
        { 
        } 
        protected override void OnInitializeView(DataFormItem dataFormItem, SfComboBox view) 
        { 
            base.OnInitializeView(dataFormItem, view); 
            view.IsEditableMode = true; 
        } 
    } 
  
    dataForm.RegisterEditor("DropDown"newCustomDropDownEditor(dataForm)); 
    dataForm.RegisterEditor("City""DropDown"); 
 
  
We have prepared sample for the same, 
 
Sample Link: DataForm 
  
We hope this helps, kindly revert us if you have any concern. 
 
Regards,
Subburaj Pandian V 


Soon Hua Khor
Replied On June 11, 2019 06:34 AM UTC

Hi,

Thank you very much. It's work perfectly now.


Regards,
Soon Hua

Subburaj Pandian Veluchamy [Syncfusion]
Replied On June 11, 2019 06:53 AM UTC

Hi Soon, 
 
Thank you for the update. We are glad that the given solution meets your requirement. 
 
Please get in touch with us if you would require any further assistance in future. 
 
Regards,
Subburaj Pandian V 


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