EditLinkAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Indicates that the property this attribute is placed on should have an edit link.
[AttributeUsage(AttributeTargets.All)]
public sealed class EditLinkAttribute : Attribute
Public Members
| name | description |
|---|---|
| EditLinkAttribute() | Creates a new EditLinkAttribute. |
| EditLinkAttribute(…) | Creates a new EditLinkAttribute with enable/disable option. |
| CssClass { get; set; } | Gets or sets the optional CSS class to add to edit links. |
| IdField { get; set; } | Gets or sets the property from which this edit link should get its ID value to edit. |
| ItemType { get; set; } | Optional item type that this edit link should open. It should match the dialog namespace / class name. |
| Quiet { get; set; } | Gets or sets whether the edit link is a quiet one, which looks like the text of its cell until the row is hovered or the link has the focus, and opens the record all the same. True makes it quiet, e.g. for a column whose link repeats another one of the row, and false a full link, whatever the grid decides for the others. When it is not set, the grid decides: with the "primary" edit links of the grid, only the first visible link to the record of the row is a full link. See GetQuiet to tell whether it is set, as an attribute property can not be nullable. |
| Value { get; } | Gets or sets the edit link enable state. |
| GetQuiet() | Returns the value of Quiet, or null when it is not set, so that the grid decides. |
See Also
- Source: EditLinkAttribute.cs