Hi,
Whenever I select a Gantt chart row, this error message pops up.
Unhandled exception rendering component: Unable to cast object of type 'System.Int64' to type 'System.Int32'.
System.InvalidCastException: Unable to cast object of type 'System.Int64' to type 'System.Int32'.
at Syncfusion.Blazor.Gantt.Internal.TreeGridPane`1.<>c__DisplayClass26_0.b__0(GanttRowData`1 chartRow)
at System.Collections.Generic.List`1.Find(Predicate`1 match)
at Syncfusion.Blazor.Gantt.Internal.TreeGridPane`1.RowSelectedHandler(RowSelectEventArgs`1 gridArgs)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Syncfusion.Blazor.Internal.SfBaseUtils.InvokeEvent[T](Object eventFn, T eventArgs)
at Syncfusion.Blazor.TreeGrid.Internal.GridRenderer`1.RowSelectedHandler(RowSelectEventArgs`1 gridArgs)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Syncfusion.Blazor.Internal.SfBaseUtils.InvokeEvent[T](Object eventFn, T eventArgs)
at Syncfusion.Blazor.Grids.Internal.Selection`1.SelectByRow(Row`1 rowToSelect, MouseAndKeyArgs evt)
at Syncfusion.Blazor.Grids.Internal.Selection`1.ValidateRowSelectionClick(Row`1 row, MouseAndKeyArgs e)
at Syncfusion.Blazor.Grids.Internal.Selection`1.RowSelectionClickHandler(MouseAndKeyArgs e, ValueTuple`3 target)
at Syncfusion.Blazor.Grids.Internal.Selection`1.ClickHandler(MouseEventArgs e, ValueTuple`3 target)
at Syncfusion.Blazor.Grids.Internal.GridCellBase`1.CellClickHandler(MouseEventArgs e, Boolean IsCheckBox)
at Syncfusion.Blazor.TreeGrid.Internal.TreeCell`2.b__0_5(MouseEventArgs e)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)
The ID value that I'm passing into the Gantt chart's Task ID property is of the long data type. How can I customize the Gantt chart property so that it would accept an ID value of type long? Please note that it is not an option to change the data type of our Task/Event ID to int from long.
Thanks!