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,
We hope this helps, kindly revert us if you have any concern.
Regards,
Subburaj Pandian V