This is a migrated thread and some comments may be shown as answers.

Mark the task which is moved

1 Answer 32 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Nagaraj
Top achievements
Rank 1
Nagaraj asked on 18 Feb 2015, 10:19 AM
Hi, 
How can we capture drag and drop of task ?  
Which particular task was moved,
and also can we mark the task which is moved
Thanks,
BNB

1 Answer, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 20 Feb 2015, 05:50 PM
Hello Nagaraj,

Thank you for writing. 

Regarding your first question please see your other support thread: Gantt View unable to trace drag and drop event.

As for your second question, you could visually mark the item by subscribing to the GraphicalViewItemFormatting event and in the handler change the color of a particular item based on some condition, e.g. the value of its Tag property:
Private Sub radGanttView1_GraphicalViewItemFormatting(sender As Object, e As GanttViewGraphicalViewItemFormattingEventArgs)
    Dim item As GanttViewDataItem = TryCast(e.Item, GanttViewDataItem)
    If item IsNot Nothing AndAlso item.Tag IsNot Nothing AndAlso item.Tag.ToString() = "Marked" Then
        e.ItemElement.TaskElement.BackColor = Color.Red
    Else
        e.ItemElement.TaskElement.ResetValue(LightVisualElement.BackColorProperty, Telerik.WinControls.ValueResetFlags.Local)
    End If
End Sub

I hope this information helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GanttView
Asked by
Nagaraj
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or