or
var appointments = new ObservableCollection<Appointment>();
Appointment myAppointment = new Appointment();
myAppointment.Subject = "Appointment Here";
myAppointment.Start = new DateTime(2012, 7, 31, 00, 00, 00);
myAppointment.End = new DateTime(2012, 7, 31, 2, 00, 00);
appointments.Add(myAppointment);scheduleView.AppointmentsSource = appointments;private void grdSessions_DragQuery(object sender, Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs e){ e.QueryResult = true; if (e.Options.Status != DragStatus.DragQuery) return; var sessionToDrag = (XTSession)grdSessions.SelectedItem; if (sessionToDrag != null) { e.Options.Payload = sessionToDrag; e.Options.DragCue = RadDragAndDropManager.GenerateVisualCue(); e.Options.ArrowCue = RadDragAndDropManager.GenerateArrowCue(); } }private void tvwNodes_DropQuery(object sender, Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs e) { if (e.Options.Payload is XTSession) { e.QueryResult = true; } }private void tvwNodes_DropInfo(object sender, DragDropEventArgs e) { if (e.Options.Status == DragStatus.DropComplete) { if (e.Options.Payload is XTSession) { // Do the stuff } } }Hi,
I see "Click here to add new item" , but it doesnt work. It's not enabled(clickable). Where i messed up? =)
<telerik:RadGridView Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" ItemsSource="{Binding Path=Step.Outputs,Mode=TwoWay}" ShowInsertRow="True" IsReadOnly="False" EditTriggers="CellClick" CanUserInsertRows="True" CanUserDeleteRows="True" AutoGenerateColumns="False" CanUserSortColumns="False" ShowGroupPanel="False" ShowGroupFooters="False"> <telerik:RadGridView.Columns> <telerik:GridViewComboBoxColumn Width="Auto" Header="Typ"> <telerik:GridViewComboBoxColumn.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Image Source="{Binding Path=OutputType.IconId, Mode=TwoWay, Converter={StaticResource imageConverter}, ConverterParameter='png'}" Grid.Column="0" VerticalAlignment="Center"/> <TextBlock Text="{Binding Path=OutputType.Name, Mode=TwoWay}" Grid.Column="1"></TextBlock> </Grid> </DataTemplate> </telerik:GridViewComboBoxColumn.ItemTemplate> </telerik:GridViewComboBoxColumn> <telerik:GridViewDataColumn Width="*" Header="Text" DataMemberBinding="{Binding Path=CurrentText, Mode=TwoWay}"> </telerik:GridViewDataColumn> </telerik:RadGridView.Columns></telerik:RadGridView>
Step.Outputs - ObserverableCollection