CheckLookupEditorAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Indicates that the target property should use a "CheckLookup" editor.
[AttributeUsage(AttributeTargets.All)]
public class CheckLookupEditorAttribute : CustomEditorAttribute
Public Members
| name | description |
|---|---|
| CheckLookupEditorAttribute(…) | Initializes a new instance of the CheckLookupEditorAttribute class. (2 constructors) |
| CascadeField { get; set; } | Cascade filtering field (items will be filtered on this key, e.g. CountryID) Make sure you have [LookupInclude] attribute on this field of lookup row, otherwise you'll have empty results as this field won't be available client side. |
| CascadeFrom { get; set; } | ID (can be relative) of the editor that this editor will cascade from, e.g. Country |
| CascadeValue { get; set; } | Cascade filtering value, usually set by CascadeFrom editor, e.g. the integer value of CountryID If null or empty, and CascadeField is set, all items are filtered |
| CheckedOnTop { get; set; } | Move selected items to top on load |
| Delimited { get; set; } | Use comma separated string instead of an array to serialize values. |
| FilterField { get; set; } | Optional filtering field (items will be filtered on this key, e.g. GroupID) Make sure you have [LookupInclude] attribute on this field of lookup row, otherwise you'll have empty results as this field won't be available client side. |
| FilterValue { get; set; } | Optional filtering value, e.g. the integer value of GroupID. If null or empty string no filtering occurs. |
| HideSearch { get; set; } | Hide quick search input |
| LookupKey { get; set; } | Lookup key, e.g. Northwind.CustomerCity |
| ShowSelectAll { get; set; } | Show select all button |
| const Key | Editor type key |
See Also
- class CustomEditorAttribute
- Source: CheckLookupEditorAttribute.cs