TreeListCustomizeFilterRowEditorEventArgs.EditSettings Property
Returns an object that contains editor settings.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public IEditSettings EditSettings { get; }
Property Value
Type | Description |
---|---|
IEditSettings | Editor settings. |
Remarks
The TreeList configures editor settings for individual columns based on associated data types. You can customize these settings in markup.
The EditSettings
property returns the customized (if any) settings of the processed editor.
Cast an object, returned by the EditSettings
property, to a particular editor’s settings interface when you need editor-specific settings.
void OnCustomizeFilterRowEditor(TreeListCustomizeFilterRowEditorEventArgs e) {
if(e.FieldName == "UnitPrice") {
var spinEditSettings = e.EditSettings as ISpinEditSettings;
spinEditSettings.Increment="0.1M";
}
You can also cast the returned object to the base interface if the editor type is unknown or you need common settings.
void OnCustomizeFilterRowEditor(TreeListCustomizeFilterRowEditorEventArgs e) {
if(e.EditSettings is ITextEditSettings settings)
settings.ClearButtonDisplayMode = DataEditorClearButtonDisplayMode.Never;
}
See Also