Defines the fluent API for configuring SpreadsheetSheetRowCellValidationSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class SpreadsheetSheetRowCellValidationSettingsBuilder
Inheritance: objectSpreadsheetSheetRowCellValidationSettingsBuilder
Inherited Members
Constructors
SpreadsheetSheetRowCellValidationSettingsBuilder method.
public SpreadsheetSheetRowCellValidationSettingsBuilder(SpreadsheetSheetRowCellValidationSettings container)
Properties
Gets the settings being configured.
protected SpreadsheetSheetRowCellValidationSettings Container { get; }
Methods
Specifies whether to allow null values.
public SpreadsheetSheetRowCellValidationSettingsBuilder AllowNulls(bool value)
The value for AllowNulls
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the comparer type that is used to validate the cell value.
public SpreadsheetSheetRowCellValidationSettingsBuilder ComparerType(string value)
The value for ComparerType
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the data type of the cell value.The supported values are: date; text; number; list or custom.
public SpreadsheetSheetRowCellValidationSettingsBuilder DataType(string value)
The value for DataType
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines a formula or a value that is used for the comparison process. Used as the only compare value if the comparer type does not require a second argument. Mandatory for validation to work.
public SpreadsheetSheetRowCellValidationSettingsBuilder From(string value)
The value for From
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the hint message that will be displayed if the value is invalid.The template provides access to the following variables: from{0}; to{1}; fromFormula{2}; toFormula{3}; dataType{4}; type{5} or comparerType{6}.
public SpreadsheetSheetRowCellValidationSettingsBuilder MessageTemplate(string value)
The value for MessageTemplate
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the hint message that will be displayed if the value is invalid.The template provides access to the following variables: from{0}; to{1}; fromFormula{2}; toFormula{3}; dataType{4}; type{5} or comparerType{6}.
public SpreadsheetSheetRowCellValidationSettingsBuilder MessageTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the messagetemplate.
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the hint message that will be displayed if the value is invalid.The template provides access to the following variables: from{0}; to{1}; fromFormula{2}; toFormula{3}; dataType{4}; type{5} or comparerType{6}.
public SpreadsheetSheetRowCellValidationSettingsBuilder MessageTemplateHandler(string templateHandler)
The handler that returs the template for MessageTemplate
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the hint message that will be displayed if the value is invalid.The template provides access to the following variables: from{0}; to{1}; fromFormula{2}; toFormula{3}; dataType{4}; type{5} or comparerType{6}.
public SpreadsheetSheetRowCellValidationSettingsBuilder MessageTemplateId(string templateId)
The ID of the template element for MessageTemplate
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the hint message that will be displayed if the value is invalid.The template provides access to the following variables: from{0}; to{1}; fromFormula{2}; toFormula{3}; dataType{4}; type{5} or comparerType{6}.
public SpreadsheetSheetRowCellValidationSettingsBuilder MessageTemplateView(IHtmlContent templateView)
The view that contains the template for MessageTemplate
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
A Boolean value which indicates if a button for selecting list items will be displayed (dataType set to list).
public SpreadsheetSheetRowCellValidationSettingsBuilder ShowButton()
SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
A Boolean value which indicates if a button for selecting list items will be displayed (dataType set to list).
public SpreadsheetSheetRowCellValidationSettingsBuilder ShowButton(bool value)
The value for ShowButton
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the hint title that will be displayed if the value is invalid.
public SpreadsheetSheetRowCellValidationSettingsBuilder TitleTemplate(string value)
The value for TitleTemplate
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the hint title that will be displayed if the value is invalid.
public SpreadsheetSheetRowCellValidationSettingsBuilder TitleTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the titletemplate.
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the hint title that will be displayed if the value is invalid.
public SpreadsheetSheetRowCellValidationSettingsBuilder TitleTemplateHandler(string templateHandler)
The handler that returs the template for TitleTemplate
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the hint title that will be displayed if the value is invalid.
public SpreadsheetSheetRowCellValidationSettingsBuilder TitleTemplateId(string templateId)
The ID of the template element for TitleTemplate
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the hint title that will be displayed if the value is invalid.
public SpreadsheetSheetRowCellValidationSettingsBuilder TitleTemplateView(IHtmlContent templateView)
The view that contains the template for TitleTemplate
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines a formula or a value that is used for the comparison process. Will be used if the comparer type requires a second argument.
public SpreadsheetSheetRowCellValidationSettingsBuilder To(string value)
The value for To
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.
Defines the validation type.The supported options are: reject or warning (default).
public SpreadsheetSheetRowCellValidationSettingsBuilder Type(string value)
The value for Type
Returns:SpreadsheetSheetRowCellValidationSettingsBuilder
Returns the current SpreadsheetSheetRowCellValidationSettingsBuilder instance.