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

How to delete a dependency

1 Answer 104 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 04 Jan 2013, 03:14 PM
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:ColumnDefinition.CellEditTemplate>
		<DataTemplate>
                           <telerik:RadComboBox VerticalAlignment="Center" x:Name="DependencyCombo"
				ItemsSource="{Binding Dependencies}" ItemTemplate="{StaticResource ComboBoxCustomTemplate2}"
				SelectionBoxTemplate="{StaticResource ComboBoxSimpleTemplate}"  />
		</DataTemplate>
	</telerik:ColumnDefinition.CellEditTemplate>
</telerik:ColumnDefinition>


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?

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 11 Jan 2013, 01:03 PM
Hi,

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.

Regards,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GanttView
Asked by
Steven
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or