Пример #1
0
        public static SearchField ToSearchField(this FieldResult fieldResult)
        {
            var field = fieldResult.ToField <SearchField>();

            SetupSearchableField(field, fieldResult);

            return(field);
        }
Пример #2
0
        public static GridField ToGridField(this FieldResult fieldResult)
        {
            var field = fieldResult.ToField <GridField>();

            field.Order = fieldResult.ResultOrder ?? int.MaxValue;

            return(field);
        }
Пример #3
0
        public static TPropertyField ToGenericPropertyField <TPropertyField>(this FieldResult fieldResult)
            where TPropertyField : PropertyField, new()
        {
            var field = fieldResult.ToField <TPropertyField>();

            field.IsEditable = field.IsEditable;
            field.Order      = fieldResult.ViewerOrder ?? fieldResult.ResultOrder ?? int.MaxValue;

            return(field);
        }