Table of Contents

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

Column string
ConditionColumn string
ConditionValue string

Properties

ConditionColumn

public string ConditionColumn { get; init; }

Property Value

string

ConditionValue

public string ConditionValue { get; init; }

Property Value

string

Negate

Gets or sets a value indicating whether the restriction rule should negate the condition.

public bool Negate { get; set; }

Property Value

bool

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

GridColumnRestrictionRule

Type Parameters

TModel
TValue
To top