Hi Mario,
Thank you for contacting Syncfusion support.
We have analyzed your requirement “Customize Segment editor styles in DataForm”. Segment editor styles can be customized using custom DataForm editor. In custom segment editor you can change SelectionIndicatorSettings for the view.
Kindly refer our UG documentation to know more about customizing DataForm editor,
Code Snippet:
public class SegmentEditorExt : DataFormSegmentedEditor
{
public SegmentEditorExt(SfDataForm dataForm) : base(dataForm)
{
}
protected override void OnInitializeView(DataFormItem dataFormItem, SfSegmentedControl view)
{
base.OnInitializeView(dataFormItem, view);
SelectionIndicatorSettings selectionIndicator = new SelectionIndicatorSettings();
selectionIndicator.Color = Color.Red;
view.SelectionIndicatorSettings = selectionIndicator;
}
}
dataForm.RegisterEditor("Segment", new SegmentEditorExt(dataForm));
dataForm.RegisterEditor("SaveTo", "Segment"); |
We have prepared a simple sample for the same,
We hope this helps. Kindly revert us if you have any concern.
Regards,
Subburaj Pandian V