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

An editable DataFormDropDownEditor

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



3 Replies

SP Subburaj Pandian Veluchamy Syncfusion Team 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 



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

Hi,

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


Regards,
Soon Hua


SP Subburaj Pandian Veluchamy Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon