Class DeSelectedEventArgs<T>
Provides event arguments for the DeSelected event when a date is deselected in a calendar component.
Inheritance
System.Object
DeSelectedEventArgs<T>
Namespace: Syncfusion.Blazor.Calendars
Assembly: Syncfusion.Blazor.dll
Syntax
public class DeSelectedEventArgs<T> : Object
Type Parameters
Name | Description |
---|---|
T | The type of the date value being deselected (typically System.DateTime or nullable System.DateTime). |
Remarks
This class contains the deselected date value when a user deselects a previously selected date in the calendar component. This event is typically used in multi-selection scenarios where users can remove dates from their selection.
Examples
<SfCalendar TValue="DateTime?" IsMultiSelection="true">
<CalendarEvents TValue="DateTime?" DeSelected="OnDateDeselected"></CalendarEvents>
</SfCalendar>
@code {
void OnDateDeselected(DeSelectedEventArgs<DateTime?> args)
{
Console.WriteLine($"Deselected date: {args.Value}");
}
}
Constructors
DeSelectedEventArgs()
Declaration
public DeSelectedEventArgs()
Properties
Value
Gets or sets the deselected date value.
Declaration
public T Value { get; set; }
Property Value
Type | Description |
---|---|
T | A value of type |
Remarks
This property contains the date value that was deselected by the user in the calendar component. The type is determined by the generic parameter, allowing for different date value types.