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

Column Editing questions

2 Answers 44 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 21 Mar 2013, 08:40 PM
Hi

I'm trying to do the following with when editing a Date Column:

1. Find the Node Parent for the editing column.
2. Since I'm using the RadDatePicker for editing, I will like to set the SelectableDateStart and SelectableDateEnd to the Parents start and end dates when in the TaskEditing Event, Is this possible?
3. Is there anyway to set the row as a dirty row?, so when I loop thru all the nodes I can check for this value and save it

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladi
Telerik team
answered on 26 Mar 2013, 02:23 PM
Hello Ron,

Straight to your questions:
  1. In order to get the parent of the edited cell all you need to do is drill to it in the TaskEditing event.
  2. In order to set the SelectableDateStart and SelectableDateEnd of the DateTimePicker corresponding to the summary Start/End values you will need to create a custom GanttTask and add two properties for those values. Then in your ViewModel set them and add bindings to the DateTimePicker in the CellEditTemplate.
  3. In the current version of RadGanttView control there isn't a built-in feature that could be used to implement dirty task functionality but it could be achieved easily by creating a custom GanttTask. All you need to do is create a class that inherits GanttTask, add a boolean property that will indicate a task as "dirty", then override the OnPropertyChanged() method of the GanttTask and in it set that property to true.

We created and attached a sample project for you with the previously described approach, hope this is helpful. Also you could read this help article that describes in details how to create custom GanttTask.

Greetings,

Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ron
Top achievements
Rank 1
answered on 26 Mar 2013, 04:37 PM
Thanks Vladi,

This works great
Tags
GanttView
Asked by
Ron
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Ron
Top achievements
Rank 1
Share this question
or