When overriding CanResize the parameter passed in the method is of type SchedulingResizeState. This state contains an IDateRange ResizedItem, that is the IGanttTask we are trying to resize. Here is a small code snippet that allows resizing only for IGanttTasks that have an End
date before today.
var task = state.ResizedItem
(task.End >= DateTime.Now)
Also depending on your scenario, you might want to consider overriding CanStartResize
instead of CanResize method as the first specifies whether the resize operation can be started, while the second specifies whether the resize operation can be completed.
Hopefully this helps.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.