Attributes

KBlazor attributes decorate model properties to control how they appear in FlexTable and BasicEdit.

[AllowInlineEdit]

Marks a property editable directly within the FlexTable row. Use with the InlineEditor parameter.

[Display(Name = "Urgent")]
[AllowInlineEdit]
public bool IsUrgent { get; set; }
FlexTable
[AlsoInclude]

Tells BasicEdit to eager-load a related navigation property when resolving lookups.

[AlsoInclude(Name = "Lines")]
public virtual ICollection<OrderLine> Lines { get; set; }
BasicEdit
[AutoComplete]

Renders the field as an autocomplete input in BasicEdit, populated from IEntityLookupProvider.

[Display(Name = "Customer")]
[AutoComplete]
public Guid? CustomerId { get; set; }
BasicEdit
[CasscadeLookup]

Creates a dependent dropdown filtered by another property's value.

[Display(Name = "Sub-Category")]
[CasscadeLookup(AdditionalProperties = "CategoryId")]
public Guid? SubCategoryId { get; set; }
BasicEdit
[DisplayNoWrap]

Prevents text wrapping in the FlexTable column for this property.

[Display(Name = "Amount")]
[DisplayNoWrap]
public decimal Amount { get; set; }
FlexTable
[EnableTime]

Enables time selection on a DateTime field in BasicEdit (default is date-only).

[Display(Name = "Order Date")]
[EnableTime]
public DateTime OrderDate { get; set; }
BasicEdit
[LinkOnField]

Renders the field value as a clickable link in FlexTable.

[Display(Name = "Reference")]
[LinkOnField]
public string Reference { get; set; }
FlexTable
[MemoDisplay]

Renders the field as a multiline textarea in BasicEdit instead of a single-line input.

[Display(Name = "Notes")]
[MemoDisplay]
public string Notes { get; set; }
BasicEdit
[ReadOnlyOnEdit]

Makes the field read-only when editing an existing entity (IsNew == false).

[Display(Name = "Order #")]
[ReadOnlyOnEdit]
public string Name { get; set; }
BasicEdit
[SortAndFilterOn]

Specifies that sort and filter should operate on a different member than the displayed property — essential for computed or navigation properties.

[Display(Name = "Customer")]
[SortAndFilterOn(Member = "Customer.Name")]
public string CustomerName => Customer?.Name ?? string.Empty;
FlexTable
[ToolTipOnField]

Displays a tooltip sourced from another property when hovering this field in FlexTable.

[Display(Name = "Name")]
[ToolTipOnField(PropertyName = "Description")]
public string Name { get; set; }
FlexTable