Class GridColumnRestrictionRule
- Namespace
- Dynamicweb.CoreUI.Lists
- Assembly
- Dynamicweb.CoreUI.dll
public sealed record GridColumnRestrictionRule : GridColumnRule, IEquatable<GridColumnRule>, IEquatable<GridColumnRestrictionRule>
- Inheritance
-
GridColumnRestrictionRule
- Implements
- Inherited Members
Constructors
GridColumnRestrictionRule(string, string, string)
public GridColumnRestrictionRule(string Column, string ConditionColumn, string ConditionValue)
Parameters
Properties
ConditionColumn
public string ConditionColumn { get; init; }
Property Value
ConditionValue
public string ConditionValue { get; init; }
Property Value
Negate
Gets or sets a value indicating whether the restriction rule should negate the condition.
public bool Negate { get; set; }
Property Value
Remarks
When this property is set to true
, the rule will check the column using the "not equal" (!=) operator instead of the "equal" (==) operator.
Methods
Create<TModel, TValue>(Expression<Func<TModel, object>>, Expression<Func<TModel, TValue>>, TValue)
public static GridColumnRestrictionRule? Create<TModel, TValue>(Expression<Func<TModel, object>> columnExpression, Expression<Func<TModel, TValue>> conditionalColumnExpression, TValue conditionValue)
Parameters
columnExpression
Expression<Func<TModel, object>>conditionalColumnExpression
Expression<Func<TModel, TValue>>conditionValue
TValue
Returns
Type Parameters
TModel
TValue