<radSchedulerView:RadScheduleView FontSize="18" x:Name="_sView" Grid.Column="0" Grid.RowSpan="2"> <radSchedulerView:RadScheduleView.ViewDefinitions> <radSchedulerView:DayViewDefinition DayStartTime="00:00:00" DayEndTime="23:59:59" MinTimeRulerExtent="1800" /> <radSchedulerView:WeekViewDefinition DayStartTime="00:00:00" DayEndTime="23:59:59" MinTimeRulerExtent="1800"/> <!-- MonthView has fixed tick lengths and extents! --> <radSchedulerView:MonthViewDefinition /> <radSchedulerView:TimelineViewDefinition DayStartTime="00:00:00" DayEndTime="23:59:59" MinorTickLength="1day" /> </radSchedulerView:RadScheduleView.ViewDefinitions> </radSchedulerView:RadScheduleView> _sView.AppointmentEditing +=
new EventHandler<AppointmentEditingEventArgs>(OnScheduler_AppointmentEditing);
_sView.AppointmentCreating +=
new EventHandler<AppointmentCreatingEventArgs>(OnScheduler_AppointmentCreating);
private void OnScheduler_AppointmentCreating(object sender, AppointmentCreatingEventArgs e){ e.Cancel = true;}private void OnScheduler_AppointmentDeleting(object sender, AppointmentDeletingEventArgs e) { e.Cancel = true; }_sView.MouseLeftButtonUp += new MouseButtonEventHandler(OnScheduler_MouseLeftButtonUp);
private void OnScheduler_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { MccmAppointment selectedAppointment = _sView.SelectedAppointment as MccmAppointment;...... }Hello, I have two question about Grid View.
Q1. How to change background color of the title row? I’d tried to change the background color of some columns’ title, but the first column’s background and the border are still black.
Q2. I also don’t know how to change the background of the child table.
Thank you!
Zhiwei.
--------------------------------------------------------------------------------------------------
public class Director{ public string Name{ get; set; } public ObservableCollection<Function > Function { get; set; }}public class Function { public string Name { get; set; } public string FunctionType{ get; set; } }
<Window.Resources>
<local:RadTreeListXmlDataSource x:Key="TreeSource" Source="TestData.xml" />
</Window.Resources>
<telerik:RadTreeListView CellEditEnded="RadTreeListView1_CellEditEnded" x:Name="RadTreeListView1" RowIsExpandedChanged="RadTreeListView1_RowIsExpandedChanged"
AutoGenerateColumns="False" ItemsSource="{StaticResource TreeSource}">
<telerik:RadTreeListView.ChildTableDefinitions>
<telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}" />
</telerik:RadTreeListView.ChildTableDefinitions>
<telerik:RadTreeListView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding Source}" Header="Type" />
</telerik:RadTreeListView.Columns>
</telerik:RadTreeListView>
-------------------------------------------------------------------------------------------------
I was able to edit the Director's properties but when I tried to edit Function's properties i.e Funnction Name ,
I got an error saying "Object does not match target type".
Can you please provide a sample for the above functionality?