Class DateTimeEditCellParams<T>
Provides edit params for customizing the DateTimePicker component during cell editing.
Inheritance
Implements
Namespace: Syncfusion.Blazor.Grids
Assembly: Syncfusion.Blazor.dll
Syntax
public class DateTimeEditCellParams<T> : Object, IEditorSettings
Type Parameters
Name | Description |
---|---|
T | The data type associated with the DateTimePicker model. The type parameter should be System.DateTime. |
Remarks
This class allows for the customization of the in-built DateTimePicker used when editing cells in a grid.
This configuration applies specifically to columns with an edit type set to DateTimePicker
as EditType.
Applies the specified format when editing the cell.
CssClass
- Specifies custom CSS classes to apply to the component.EnableRtl
- Enables right-to-left text direction.Placeholder
- Representing the placeholder text displayed in the input fieldTimeFormat
- Sets the format for displaying the time.
Examples
The following example demonstrates how to configure the DateTimeEditCellParams
class:
var dateTimeEditParams = new DateTimeEditCellParams
{
Params = new DateTimePickerModel
{
TimeFormat = "HH:mm",
}
};
Constructors
DateTimeEditCellParams()
Declaration
public DateTimeEditCellParams()
Properties
Params
Gets or sets the parameters used to configure the DateTimePicker during cell editing.
Declaration
public DateTimePickerModel<T> Params { get; set; }
Property Value
Type | Description |
---|---|
DateTimePickerModel<T> | An instance of DateTimePickerModel<T> that defines the configuration settings for the DateTimePicker. |
Remarks
Use this property to set up various aspects of the DateTimePicker, such as date and time format, that will be applied when editing a cell set to DateTimePicker
as EditType