LayoutItem.FieldName Property
Gets or sets the name of the database field assigned to the current layout item.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
String | String. |
A String value that specifies the name of a data field. |
#Remarks
Note
For ASP.
If an item type (specified using the MVCx
To solve this issue, you can do the following.
- Declare item type in item settings explicitly:
groupSettings.Items.Add(itemSettings => {
itemSettings.FieldName = "Description";
itemSettings.NestedExtensionType = FormLayoutNestedExtensionItemType.TextBox; //required type here
itemSettings.NestedExtensionSettings.Width = Unit.Percentage(100);
});
- Alternatively, use the overloaded Add method that directly accepts a Model property:
groupSettings.Items.Add(m => m.Description, itemSettings =>
{
itemSettings.FieldName = "Description";
itemSettings.NestedExtensionSettings.Width = Unit.Percentage(100);
});