Column Editing questions

3 posts, 1 answers
  1. Ron
    Ron avatar
    26 posts
    Member since:
    Oct 2010

    Posted 21 Mar 2013 Link to this post


    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

  2. Answer
    Vladi avatar
    744 posts

    Posted 26 Mar 2013 Link to this post

    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.


    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Ron
    Ron avatar
    26 posts
    Member since:
    Oct 2010

    Posted 26 Mar 2013 Link to this post

    Thanks Vladi,

    This works great
Back to Top