Class GanttEvents<TValue>
Configures gantt events.
Inheritance
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.dll
Syntax
public class GanttEvents<TValue> : ComponentBase
Type Parameters
Name | Description |
---|---|
TValue | Specifies the type of GanttEvents. |
Constructors
GanttEvents()
Declaration
public GanttEvents()
Properties
BeforeCopy
Declaration
public EventCallback<BeforeCopyEventArgs> BeforeCopy { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<BeforeCopyEventArgs> | An event callback function. |
Remarks
This event triggers before BeforeCopy event, so you can cancel copy operation by using this event. Also, this event handler receives a BeforeCopyEventArgs object which provides the details of before copy action.
Examples
<SfGantt>
<GanttEvents BeforeCopy=”BeforeCopyHandler”></GanttEvents>
</SfGantt>
@Code {
private void BeforeCopyHandler (Syncfusion.Blazor.Gantt.BeforeCopyEventArgs args){
…
}
}
BeforeTooltipRender
An event that is raised every time before the tooltip appears in Gantt Chart.
Declaration
public EventCallback<BeforeTooltipRenderEventArgs<TValue>> BeforeTooltipRender { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<BeforeTooltipRenderEventArgs<TValue>> | An event callback function. |
Remarks
An event is raised before a tooltip is displayed.And that event handler receives a BeforeTooltipRenderEventArgs<TValue> object which provides the details of the target element. Rendering tooltip can be cancelled using Cancel argument property.
Examples
<SfGantt TValue="TaskData">
<GanttEvents BeforeTooltipRender="BeforeTooltipRenderHandler"></GanttEvents>
</SfGantt>
@code{
private void BeforeTooltipRenderHandler(BeforeTooltipRenderEventArgs<TaskData> args)
{
}
}
CellDeselected
An event that is raised when the selected cell is deselected.
Declaration
public EventCallback<CellDeselectEventArgs<TValue>> CellDeselected { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<CellDeselectEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a CellDeselectEventArgs<T> object that provides the details of the deselected cell.
Examples
<SfGantt>
<GanttEvents CellDeselected="CellDeselectedHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void CellDeselectedHandler(Syncfusion.Blazor.Grids.CellDeselectEventArgs<TaskData> args)
{
}
}
CellDeselecting
An event that is raised before a cell is deselected
Declaration
public EventCallback<CellDeselectEventArgs<TValue>> CellDeselecting { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<CellDeselectEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a CellDeselectEventArgs<T> object which provides the details of the cell to be deselected.
Examples
<SfGantt TValue="TaskData">
<GanttEvents CellDeselecting="CellDeselectingHandler"></GanttEvents>
</SfGantt>
@code{
private void CellDeselectingHandler(Syncfusion.Blazor.Grids.CellDeselectEventArgs<TaskData> args)
{
}
}
CellSelected
An event is triggered when a cell is selected.
Declaration
public EventCallback<CellSelectEventArgs<TValue>> CellSelected { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<CellSelectEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a CellSelectEventArgs<T> object which provides the details of the selected cell.
Examples
<SfGantt>
<GanttEvents CellSelected="CellSelectedHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void CellSelectedHandler(Syncfusion.Blazor.Grids.CellSelectEventArgs<TaskData> args)
{
}
}
CellSelecting
An event that is raised prior to a cell being selected.
Declaration
public EventCallback<CellSelectingEventArgs<TValue>> CellSelecting { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<CellSelectingEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a CellSelectingEventArgs<T> object which provides information about cell to be selected. The Cell selection action can be cancelled using Cancel argument proprety.
Examples
<SfGantt>
<GanttEvents CellSelecting="CellSelectingHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void CellSelectingHandler(Syncfusion.Blazor.Grids.CellSelectingEventArgs<TaskData> args)
{
}
}
Collapsed
An event that is raised after the row is collapsed to hide its child rows.
Declaration
public EventCallback<RowCollapsedEventArgs<TValue>> Collapsed { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowCollapsedEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a RowCollapsedEventArgs<T> object which provides the details of parent and child rows.
Examples
<SfGantt>
<GanttEvents Collapsed ="CollapseHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void CollapseHandler(Syncfusion.Blazor.TreeGrid.RowCollapsedEventArgs<TaskData> args)
{
}
}
Collapsing
An event that is raised a row begings collapsing to hide its child rows.
Declaration
public EventCallback<RowCollapsingEventArgs<TValue>> Collapsing { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowCollapsingEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a RowCollapsingEventArgs<T> object which provides the details of parent and child rows. Row collapse action can be cancelled using Cancel argument property.
Examples
<SfGantt>
<GanttEvents Collapsing="CollapseHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void CollapseHandler(Syncfusion.Blazor.TreeGrid.RowCollapsingEventArgs<TaskData> args)
{
}
}
ColumnMenuClicked
An event that is raised when a column menu is clicked.
Declaration
public EventCallback<ColumnMenuClickEventArgs> ColumnMenuClicked { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ColumnMenuClickEventArgs> | An event callback function. |
Remarks
This event handler receives a ColumnMenuClickEventArgs object which provides the details for the column menu item.
Examples
<SfGantt>
<GanttEvents ColumnMenuClicked="ColumnMenuClickedHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void ColumnMenuClickedHandler(Syncfusion.Blazor.Grids.ColumnMenuClickEventArgs args)
{
}
}
ColumnResized
An event that is raised when a grid column resize action ends.
Declaration
public EventCallback<ResizeArgs> ColumnResized { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ResizeArgs> | An event callback function. |
Remarks
This event handler receives a ResizeArgs object which provides the details of the resized column.
Examples
<SfGantt>
<GanttEvents ColumnResized ="ColumnResizedHandler" TValue="TaskData" ></GanttEvents>
</ SfGantt >
@code{
private void ColumnResizedHandler(Syncfusion.Blazor.Grids.ResizeArgs args)
{
}
}
ColumnResizeStart
An event is raised when a grid column resizing.
Declaration
public EventCallback<ResizeArgs> ColumnResizeStart { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ResizeArgs> | An event callback function. |
Remarks
This event handler receives a ResizeArgs object which provides the details of the resizing column.
Examples
<SfGantt>
<GanttEvents ColumnResizeStart ="ColumnResizeStartHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void ColumnResizeStartHandler(Syncfusion.Blazor.Grids.ResizeArgs args)
{
}
}
ContextMenuItemClicked
An event that is raised when a context menu items is clicked.
Declaration
public EventCallback<ContextMenuClickEventArgs<TValue>> ContextMenuItemClicked { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ContextMenuClickEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a ContextMenuClickEventArgs<T>object that contains information regarding the conetxt menu item. Custom actions for custom context menu items can be performed here.
Examples
<SfGantt>
<GanttEvents ContextMenuItemClicked="ContextMenuItemClickedHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void ContextMenuItemClickedHandler(Syncfusion.Blazor.Grids.ContextMenuClickEventArgs<TaskData> args)
{
}
}
ContextMenuOpen
An event that is raised before the context menu appears.
Declaration
public EventCallback<ContextMenuOpenEventArgs<TValue>> ContextMenuOpen { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ContextMenuOpenEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a ContextMenuOpenEventArgs<T> object which provides the details about the context menu.
Examples
<SfGantt>
<GanttEvents ContextMenuOpen="ContextMenuOpenHandler" TValue="TaskData"></GanttEvents>
</ SfGantt >
@code{
private void ContextMenuOpenHandler(Syncfusion.Blazor.Grids.ContextMenuOpenEventArgs<TaskData> args)
{
}
}
Created
An event that is raised when the Gantt component is generated.
Declaration
public EventCallback<object> Created { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> | An event callback function. |
Remarks
An event that is raised when a Gantt componenet is created . And that event handler receives a System.Object object which provides the details of created component.
Examples
<SfGantt>
<GanttEvents Created="CreateHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void CreateHandler(System.Object args)
{
}
}
DataBound
An event that is raised when data source is populated on the Gantt Chart.
Declaration
public EventCallback DataBound { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback | An event callback function. |
Remarks
This event is raised after the data has been successfully bound to the control.Object which provides the Bounded data
Examples
<SfGantt @ref=”Gantt” DataSource=”GanttData”>
<GanttEditSettings AllowEditing = "true" ></GanttEditSettings>
<GanttEvents DataBound="DataBoundHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
SfGantt<TaskData> Gantt;
private void DataBoundHandler(){
…
}
}
Destroyed
An event that is raised when the component is destroyed.
Declaration
public EventCallback<object> Destroyed { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> | An event callback function. |
Remarks
This event handler receives a System.Object object which provides the details when the component is detroyed.
Examples
<SfGantt>
<GanttEvents Destroyed = "DestroyHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void DestroyHandler(System.Object args)
{
}
}
EndEdit
An event that is raised when a task is updated with new data.
Declaration
public EventCallback<TaskbarEditedEventArgs<TValue>> EndEdit { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<TaskbarEditedEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a TaskbarEditedEventArgs<T> object which provides the details aboud the updated task data.
Examples
<SfGantt>
<GanttEvents EndEdit="EndEditHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void EndEditHandler(TaskbarEditedEventArgs<TaskData> args)
{
}
}
Expanded
An event that is raised after a parent row is expanded to show is child rows.
Declaration
public EventCallback<RowExpandedEventArgs<TValue>> Expanded { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowExpandedEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a RowExpandedEventArgs<T> object which provides the details of parent and child rows.
Examples
<SfGantt>
<GanttEvents Expanded="ExpandHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void ExpandHandler(Syncfusion.Blazor.TreeGrid.RowExpandedEventArgs<TaskData> args)
{
}
}
Expanding
An event that is raised when begin expanding a parent row to show its child rows.
Declaration
public EventCallback<RowExpandingEventArgs<TValue>> Expanding { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowExpandingEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a RowExpandingEventArgs<T> object which provides the details of parent and child rows. Row expand action can be cancelled using Cancel argument property.
Examples
<SfGantt>
<GanttEvents Expanding="ExpandingHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void ExpandingHandler(Syncfusion.Blazor.TreeGrid.RowExpandingEventArgs<TaskData> args)
{
}
}
OnActionBegin
An event that is raised when Gantt actions such as sorting, filtering, searching etc., begins.
Declaration
public EventCallback<GanttActionEventArgs<TValue>> OnActionBegin { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<GanttActionEventArgs<TValue>> | An event callback function. |
Remarks
And that event handler receives a GanttActionEventArgs<TValue> object which provides the details about the current action to be performed in Gantt. Current action can be cancelled using Cancel argument property.
Examples
<SfGantt>
<GanttEvents OnActionBegin="OnActionBeginHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void OnActionBeginHandler(GanttActionEventArgs<TaskData> args)
{
}
}
OnActionComplete
An event that is raised when Gantt actions such as sorting, filtering, searching, etc. are completed.
Declaration
public EventCallback<GanttActionEventArgs<TValue>> OnActionComplete { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<GanttActionEventArgs<TValue>> | An event callback function. |
Remarks
An event is raised whenever the actions is triggered. And that event handler receives a GanttActionEventArgs<TValue> object which provides the details about the current action performed in Gantt.
Examples
<SfGantt>
<GanttEvents OnActionComplete="OnActionCompleteHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void OnActionCompleteHandler(GanttActionEventArgs<TaskData> args)
{
}
}
OnActionFailure
An event that is raised when any Gantt action failed to achieve the desired results.
Declaration
public EventCallback<FailureEventArgs> OnActionFailure { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<FailureEventArgs> | An event callback function. |
Remarks
This event handler receives a FailureEventArgs object which provides the details of action failure in Gantt Chart. Stack trace of exceptions, if any, can also be obtained here.
Examples
<SfGantt >
<GanttEvents OnActionFailure="OnActionFailureHandler" TValue="TaskData"></GanttEvents>
</SfGantt
@code{
private void OnActionFailureHandler(Syncfusion.Blazor.Grids.FailureEventArgs args)
{
}
}
OnCellEdit
An event that is raised when editing a cell.
Declaration
public EventCallback<CellEditArgs<TValue>> OnCellEdit { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<CellEditArgs<TValue>> | An event callback function. |
Remarks
The event handler will be called when the value of a cell is edited.And the event handler receives a CellEditArgs<T> object which provides the details of the cell to be edited. Cell edit action can be cancelled using Cancel argument property.
Examples
<SfGantt>
<GanttEvents OnCellEdit="OnCellEditHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void OnCellEditHandler(Syncfusion.Blazor.Grids.CellEditArgs<TValue> args)
{
}
}
OnCellSave
An event that occurs prior to the updating of a cell with new data.
Declaration
public EventCallback<CellSaveArgs<TValue>> OnCellSave { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<CellSaveArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a CellSaveArgs<T> object which provides the details about the cell to be saved.
Examples
<SfGantt>
<GanttEvents OnCellSave="OnCellSaveHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void OnCellSaveHandler(Syncfusion.Blazor.Grids.CellSaveArgs<TaskData> args)
{
}
}
OnLoad
An event that is raised before the rendering of Gantt Component.
Declaration
public EventCallback<object> OnLoad { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> | An event callback function. |
Remarks
This event handler receives a System.Object object which provides the details of the gantt before initial rendering.
Examples
<SfGantt>
<GanttEvents OnLoad="OnLoadHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void OnLoadHandler(System.Object args)
{
}
}
OnRowDragStart
Gets or sets the event callback that is raised when we start dragging the rows to perform a reorder.
Declaration
public EventCallback<RowDragEventArgs<TValue>> OnRowDragStart { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowDragEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a RowDragEventArgs<T> object that shows information about the rows it is being dragged from.
Examples
<SfGantt>
<GanttEvents OnRowDragStart="OnRowDragStartHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void OnRowDragStartHandler(Syncfusion.Blazor.Grids.RowDragEventArgs<TaskData> args)
{
}
}
OnToolbarClick
An event that is raised when a toolbar item is clicked.
Declaration
public EventCallback<ClickEventArgs> OnToolbarClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ClickEventArgs> | An event callback function. |
Remarks
This event handler receives a ClickEventArgs object which provides the details about the toolbar item. Custom actions for custom toolbar items can be performed using this event.
Examples
<SfGantt>
<GanttEvents OnToolbarClick="OnToolbarClickHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void OnToolbarClickHandler(Syncfusion.Blazor.Navigations.ClickEventArgs args)
{
}
}
Parent
Declaration
protected SfGantt<TValue> Parent { get; set; }
Property Value
Type | Description |
---|---|
SfGantt<TValue> |
QueryCellInfo
An event that is raised whenever a grid cell is rendered or refreshed in Gantt.
Declaration
public EventCallback<QueryCellInfoEventArgs<TValue>> QueryCellInfo { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<QueryCellInfoEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a QueryCellInfoEventArgs<T> object which provides the details of the grid cell. Customizations for grid cell element can be performed here.
Examples
<SfGantt>
<GanttEvents QueryCellInfo="QueryCellInfoHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void QueryCellInfoHandler(Syncfusion.Blazor.Grids.QueryCellInfoEventArgs<TaskData> args)
{
}
}
QueryChartRowInfo
An event that is raised whenever a chart row is rendered or refreshed in Gantt.
Declaration
public EventCallback<QueryChartRowInfoEventArgs<TValue>> QueryChartRowInfo { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<QueryChartRowInfoEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a QueryChartRowInfoEventArgs<TValue> object which provides the details about the chart row. Customizations for chart row element can be performed here.
Examples
<SfGantt>
<GanttEvents QueryChartRowInfo="QueryChartRowInfoHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void QueryChartRowInfoHandler(QueryChartRowInfoEventArgs<TValue> args)
{
}
}
RowDataBound
An event that is raised whenever a grid row is rendered or refreshed in Gantt.
Declaration
public EventCallback<RowDataBoundEventArgs<TValue>> RowDataBound { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowDataBoundEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a RowDataBoundEventArgs<T> object which provides the details of the grid row. Customizations for grid row element can be performed here.
Examples
<SfGantt>
<GanttEvents RowDataBound="RowDataBoundHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void RowDataBoundHandler(Syncfusion.Blazor.Grids.RowDataBoundEventArgs<TaskData> args)
{
}
}
RowDeselected
An event that is raised when a selected row is deselected.
Declaration
public EventCallback<RowDeselectEventArgs<TValue>> RowDeselected { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowDeselectEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a RowDeselectEventArgs<T> object which provides the details of the deselected row.
Examples
<SfGantt>
<GanttEvents RowDeselected="RowDeselectedHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void RowDeselectedHandler(Syncfusion.Blazor.Grids.RowDeselectEventArgs<TaskData> args)
{
}
}
RowDeselecting
An event that is raised before a row is deselected.
Declaration
public EventCallback<RowDeselectEventArgs<TValue>> RowDeselecting { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowDeselectEventArgs<TValue>> | An event callback function. |
Remarks
The RowDeselecting event occurs before a row is deselected. This event handler receives a RowDeselectEventArgs<T> object which provides the details of the row to be deselected.
Examples
<SfGantt>
<GanttEvents RowDeselecting="RowDeselectingHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void RowDeselectingHandler(Syncfusion.Blazor.Grids.RowDeselectEventArgs<TaskData> args)
{
}
}
RowDragStarting
Gets or sets the event callback that is raised when we start dragging the rows to perform a reorder.
Declaration
public EventCallback<RowDragStartingEventArgs<TValue>> RowDragStarting { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowDragStartingEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a RowDragStartingEventArgs<T> object that shows information about the rows it is being dragged from.
Examples
<SfGantt>
<GanttEvents RowDragStarting="RowDragStartingHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void RowDragStartingHandler(Syncfusion.Blazor.Grids.RowDragStartingEventArgs<TaskData> args)
{
}
}
RowDropped
An event that is raised when the dragged row elements are dropped on a target row.
Declaration
public EventCallback<RowDroppedEventArgs<TValue>> RowDropped { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowDroppedEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a RowDroppedEventArgs<T> object which provides the details of dragged and dropped target rows.
Examples
<SfGantt>
<GanttEvents RowDropped="RowDroppedHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void RowDroppedHandler(Syncfusion.Blazor.Grids.RowDroppedEventArgs<TaskData> args)
{
}
}
RowDropping
Gets or sets the event callback that is raised when the row of elements are dropping on target element. You can cancel the dropping action using this event.
Declaration
public EventCallback<RowDroppingEventArgs<TValue>> RowDropping { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowDroppingEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a RowDroppingEventArgs<T> object which provides the details of the rows which are dropping and the target where the rows are dropping.
If the dropping action is prevented using the Cancel
argument, then the RowDropped event doesn't trigger.
Examples
<SfGantt>
<GanttEvents RowDropping="OnRowDroppingHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void RowDroppingHandler(RowDroppingEventArgs<BusinessObject> args)
{
//you can cancel the dropping action here
args.Cancel = true;
}
RowSelected
An event that is raised when a row is selected.
Declaration
public EventCallback<RowSelectEventArgs<TValue>> RowSelected { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowSelectEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a RowSelectEventArgs<T> object which provides the details of the selected row.
Examples
<SfGantt>
<GanttEvents RowSelected="RowSelectedHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void RowSelectedHandler(Syncfusion.Blazor.Grids.RowSelectEventArgs<TaskData> args)
{
}
}
RowSelecting
An event that is raised before row selection occurs.
Declaration
public EventCallback<RowSelectingEventArgs<TValue>> RowSelecting { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<RowSelectingEventArgs<TValue>> | An event callback function. |
Remarks
An event is raised whenever the user is about to select a row. And that event handler receives a RowSelectingEventArgs<T> object which provides the details of the row to be selected. Row selection action can be cancelled using Cancel argument property.
Examples
<SfGantt>
<GanttEvents RowSelecting="RowSelectingHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void RowSelectingHandler(Syncfusion.Blazor.Grids.RowSelectingEventArgs<TaskData> args)
{
}
}
SplitterCreated
An event that is raised when a splitter is created in Gantt.
Declaration
public EventCallback<object> SplitterCreated { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> | An event callback function. |
Remarks
This event handler receives a System.Object object which provides the details of splitter.
Examples
@using Syncfusion.Blazor.Gantt
<SfGantt>
<GanttEvents TValue="TaskData" SplitterCreated="SplitterCreatedHandler"></GanttEvents>
</SfGantt>
@code{
public void SplitterCreatedHandler(System.Object args)
{
Console.WriteLine("Callback for splitter created event");
}
}
SplitterResized
An event that is raised when the splitter is resized.
Declaration
public EventCallback<ResizingEventArgs> SplitterResized { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ResizingEventArgs> | An event callback function. |
Remarks
This event handler receives a ResizingEventArgs object which provides the details of splitter resize action.
Examples
<SfGantt>
<GanttEvents SplitterResized="SplitterResizeHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void SplitterResizeHandler(Syncfusion.Blazor.Layouts.ResizingEventArgs args)
{
}
}
SplitterResizeStart
An event that is raised when the Splitter is started to be resized.
Declaration
public EventCallback<ResizeEventArgs> SplitterResizeStart { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ResizeEventArgs> | An event callback function. |
Remarks
This event handler receives a ResizeEventArgs object which provides the details of resize action.
Examples
<SfGantt>
<GanttEvents SplitterResizeStart="SplitterResizeStartHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void SplitterResizeStartHandler(Syncfusion.Blazor.Layouts.ResizeEventArgs args)
{
}
}
SplitterResizing
An event that is raised when the splitter is resizing.
Declaration
public EventCallback<ResizingEventArgs> SplitterResizing { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ResizingEventArgs> | An event callback function. |
Remarks
This event handler receives a ResizingEventArgs object which provides the details of splitter resize action.
Examples
<SfGantt>
<GanttEvents SplitterResizing="SplitterResizingHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void SplitterResizingHandler(Syncfusion.Blazor.Layouts.ResizingEventArgs args)
{
}
}
TaskbarEdited
An event that is raised when taskbar was dragged and dropped in a new position.
Declaration
public EventCallback<TaskbarEditedEventArgs<TValue>> TaskbarEdited { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<TaskbarEditedEventArgs<TValue>> | An event callback function. |
Remarks
This event handler receives a TaskbarEditedEventArgs<T> object which provides the details about the taskbar current position.
Examples
<SfGantt>
<GanttEvents TaskbarEdited="TaskbarEditHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void TaskbarEditHandler(TaskbarEditedEventArgs<TaskData> args)
{
}
}
TaskbarEditing
An event that is raised when the user starts editing the taskbar.
Declaration
public EventCallback<TaskbarEditingEventArgs<TValue>> TaskbarEditing { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<TaskbarEditingEventArgs<TValue>> | An event callback function. |
Remarks
An event is raised when the taskbar is being edited.And that event handler recevies a TaskbarEditingEventArgs<TValue> object which provides the taskbar editing information and an option to cancel the taskbar edit action.
Examples
<SfGantt DataSource = "@TaskCollection" Height="450px" Width="700px">
<GanttTaskFields Id = "TaskId" Name="TaskName" StartDate="StartDate" EndDate="EndDate" Duration="Duration" Progress="Progress" ParentID="ParentId" Dependency="Predecessor">
</GanttTaskFields>
<GanttEditSettings AllowTaskbarEditing = "true" ></ GanttEditSettings >
< GanttEvents TaskbarEditing="TaskbarEditingHandler" TValue="TaskData"></GanttEvents>
</SfGantt>
@code{
private void TaskbarEditingHandler(TaskbarEditingEventArgs<TValue> args)
{
TaskData record = args.Data;
string actionName = args.Action;
args.Cancel = true;
}
}
Methods
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |