Attributes
KBlazor attributes decorate model properties to control how they appear in FlexTable and BasicEdit.
Marks a property editable directly within the FlexTable row. Use with the InlineEditor parameter.
[Display(Name = "Urgent")]
[AllowInlineEdit]
public bool IsUrgent { get; set; }
Tells BasicEdit to eager-load a related navigation property when resolving lookups.
[AlsoInclude(Name = "Lines")]
public virtual ICollection<OrderLine> Lines { get; set; }
Renders the field as an autocomplete input in BasicEdit, populated from IEntityLookupProvider.
[Display(Name = "Customer")]
[AutoComplete]
public Guid? CustomerId { get; set; }
Creates a dependent dropdown filtered by another property's value.
[Display(Name = "Sub-Category")]
[CasscadeLookup(AdditionalProperties = "CategoryId")]
public Guid? SubCategoryId { get; set; }
Prevents text wrapping in the FlexTable column for this property.
[Display(Name = "Amount")]
[DisplayNoWrap]
public decimal Amount { get; set; }
Enables time selection on a DateTime field in BasicEdit (default is date-only).
[Display(Name = "Order Date")]
[EnableTime]
public DateTime OrderDate { get; set; }
Renders the field value as a clickable link in FlexTable.
[Display(Name = "Reference")]
[LinkOnField]
public string Reference { get; set; }
Renders the field as a multiline textarea in BasicEdit instead of a single-line input.
[Display(Name = "Notes")]
[MemoDisplay]
public string Notes { get; set; }
Makes the field read-only when editing an existing entity (IsNew == false).
[Display(Name = "Order #")]
[ReadOnlyOnEdit]
public string Name { get; set; }
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;
Displays a tooltip sourced from another property when hovering this field in FlexTable.
[Display(Name = "Name")]
[ToolTipOnField(PropertyName = "Description")]
public string Name { get; set; }