Class DataFormComboBoxItem
Represents the class that encapsulates the layout and ComboBox editor settings for data field.
Inherited Members
Namespace: Syncfusion.Maui.DataForm
Assembly: Syncfusion.Maui.DataForm.dll
Syntax
public class DataFormComboBoxItem : DataFormListItem, IThemeElement
Constructors
DataFormComboBoxItem()
Initializes a new instance of the DataFormComboBoxItem class.
Declaration
public DataFormComboBoxItem()
Fields
IsEditableProperty
Identifies the IsEditable dependency property.
Declaration
public static readonly BindableProperty IsEditableProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for IsEditable dependency property. |
MaxDropDownHeightProperty
Identifies the MaxDropDownHeight dependency property.
Declaration
public static readonly BindableProperty MaxDropDownHeightProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for MaxDropDownHeight dependency property. |
TextSearchModeProperty
Identifies the TextSearchMode dependency property.
Declaration
public static readonly BindableProperty TextSearchModeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for TextSearchMode dependency property. |
Properties
IsEditable
Gets or sets a value indicating whether the ComboBox can be edited.
Declaration
public bool IsEditable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value of IsEditable is false. |
Examples
The below examples shows, how to use the IsEditable property of DataFormComboBoxItem in the SfDataForm.
<dataForm:SfDataForm x:Name="dataForm"
AutoGenerateItems="False">
<dataForm:SfDataForm.Items>
<dataForm:DataFormComboBoxItem FieldName="ViewType" IsEditable="True" />
</dataForm:SfDataForm.Items>
</dataForm:SfDataForm>
See Also
MaxDropDownHeight
Gets or sets the maximum height for a drop-down.
Declaration
public double MaxDropDownHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 400. |
TextSearchMode
Gets or sets the text search mode for ComboBox editor.
Declaration
public DataFormTextSearchMode TextSearchMode { get; set; }
Property Value
Type | Description |
---|---|
DataFormTextSearchMode | The default value of TextSearchMode is Contains. |
Examples
The below examples shows, how to use the TextSearchMode property of DataFormComboBoxItem in the SfDataForm.
<dataForm:SfDataForm x:Name="dataForm"
AutoGenerateItems="False">
<dataForm:SfDataForm.Items>
<dataForm:DataFormComboBoxItem FieldName="ViewType" TextSearchMode="StartsWith" />
</dataForm:SfDataForm.Items>
</dataForm:SfDataForm>