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

Ganttview Progress

2 Answers 50 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Eljey
Top achievements
Rank 1
Eljey asked on 11 Oct 2015, 10:32 AM
I want to disable the user to set progress of the item less than the progress I inputted.
Is there something like progressChangedEvent? Please help me.

2 Answers, 1 is accepted

Sort by
0
Eljey
Top achievements
Rank 1
answered on 11 Oct 2015, 10:35 AM
By the way. I'm using C# Winforms
0
Hristo
Telerik team
answered on 12 Oct 2015, 03:59 PM
Hi ,

Thank you for writing.

You can subscribe your RadGanttView object to the ItemChanged changed event. In the you can perform a check and if the value being changed is less than your minimum value display a message e.g.:
int min = 20;
private void CustomRadGanttView_ItemChanged(object sender, GanttViewItemChangedEventArgs e)
{
    if (e.PropertyName == "Progress" && e.Item.Progress < min) {
        RadMessageBox.Show("Invalid Progress");
        e.Item.Progress = min;
    }
 
}

Additionally you can also modify the context menu, please refer to the following article for details: http://www.telerik.com/help/winforms/ganttview-context-menu-modifying-context-menu.html

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

Regards,
Hristo Merdjanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GanttView
Asked by
Eljey
Top achievements
Rank 1
Answers by
Eljey
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or