How to delete a dependency

2 posts, 0 answers
  1. Steven
    Steven avatar
    6 posts
    Member since:
    Sep 2012

    Posted 04 Jan 2013 Link to this post

    Since the relation could not be selected on the GanttView, and there are not way to delete such relation.

    I tried, to create column to show all dependency of a task as beloging:
    <telerik:ColumnDefinition MemberBinding="{Binding DependencyDisplay}" Header="Dependency" ColumnWidth="100" >
                               <telerik:RadComboBox VerticalAlignment="Center" x:Name="DependencyCombo"
    				ItemsSource="{Binding Dependencies}" ItemTemplate="{StaticResource ComboBoxCustomTemplate2}"
    				SelectionBoxTemplate="{StaticResource ComboBoxSimpleTemplate}"  />

    My Intention was, when a user deselected a checkbox(inside the combobox) , will send a command to the ViewModel.

    My problem is:
    1- At the ViewModel, Because The GanttView Lost it focus, the SelectedItem is null.
    2- Since SelectedItem is null, I will need to pass 2 parameter in CommandParameter, how could I do that?

    are there any good way to manipulate relation deletion?
  2. Ivo
    Ivo avatar
    390 posts

    Posted 11 Jan 2013 Link to this post


    Currently there is no built in way to remove dependencies. I have prepared a sample project that demonstrates one way to do this using a RadAutoCompleteBox in a ColumnDefinition. Have in mind this example shows an approach how to achieve this and it is not fully complete.  We will do our best to provide a complete example in our online resources for one of the future versions of RadControls.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top