Is it possible to show date time info while dragging the task?
1 Answer, 1 is accepted
0
Hristo
Telerik team
answered on 27 May 2016, 03:12 PM
Hi Damon,
Thank you for writing.
You can associate a screen tip element for each of the tasks. For the purpose, you would need to subscribe RadGanttView to the ScreenTipNeeded event. Please check my code snippet below:
RadOffice2007ScreenTipElement screenTip = new RadOffice2007ScreenTipElement();
GanttViewTaskElement task = e.Item as GanttViewTaskElement;
if (task != null)
{
e.Delay = 1;
screenTip.MainTextLabel.Padding = pad;
screenTip.MainTextLabel.Text = "This is " + task.Text;
screenTip.MainTextLabel.Margin = new System.Windows.Forms.Padding(10);
screenTip.CaptionLabel.Padding = pad;
screenTip.EnableCustomSize = true;
screenTip.AutoSize = false;
screenTip.Size = size;
task.ScreenTip = this.screenTip;
}
}
I hope this helps. Should you have further questions please do not hesitate to write back.
Regards,
Hristo Merdjanov
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.