Show date time info while dragging the task

2 posts, 0 answers
  1. Damon
    Damon avatar
    2 posts
    Member since:
    Aug 2012

    Posted 26 May Link to this post

    Is it possible to show date time info while dragging the task?
  2. Hristo
    Hristo avatar
    714 posts

    Posted 27 May Link to this post

    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();
    Size size = new Size(120, 70);
    Padding pad = new Padding(2);
    private void radGanttView1_ScreenTipNeeded(object sender, Telerik.WinControls.ScreenTipNeededEventArgs e)
        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.

    Hristo Merdjanov
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top