Class TreeGridValidationHelper
Represents a class that implements validation behaviors of SfTreeGrid.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.TreeGrid
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public class TreeGridValidationHelper : Object, IDisposable
Constructors
TreeGridValidationHelper(SfTreeGrid)
Initializes a new instance of TreeGridValidationHelper class.
Declaration
public TreeGridValidationHelper(SfTreeGrid treeGrid)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | treeGrid | The SfTreeGrid. |
Properties
ActiveGrid
Gets or sets the reference to the currently active SfTreeGrid during validation.
Declaration
public static SfTreeGrid ActiveGrid { get; set; }
Property Value
Type | Description |
---|---|
SfTreeGrid | The reference to the currently active SfTreeGrid. |
IsCurrentCellValidated
Gets or sets the value that indicates the validation status of current cell.
Declaration
public static bool IsCurrentCellValidated { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Returns true if the current cell validation is successful; otherwise, false. |
IsCurrentRowValidated
Gets or sets the value that indicates the validation status of current row.
Declaration
public static bool IsCurrentRowValidated { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Returns true if the current row validation is successful; otherwise, false. |
Methods
Dispose()
Releases all the resources used by the TreeGridValidationHelper class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the TreeGridValidationHelper class.
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. |
SetCurrentCellValidated(Boolean)
Sets the ActiveGrid and IsCurrentCellValidated value.
Declaration
public void SetCurrentCellValidated(bool isCellValidated)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isCellValidated | Indicates whether the current cell validation is successful. |
SetCurrentRowValidated(Boolean)
Sets the ActiveGrid and IsCurrentRowValidated value.
Declaration
public void SetCurrentRowValidated(bool isRowValidated)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isRowValidated | Indicates whether the current row validation is successful. |