or
<telerik:RadGridView.GroupDescriptors> <data:GroupDescriptor Member="Checked" /> </telerik:RadGridView.GroupDescriptors> <telerik:RadGridView.SortDescriptors> <data:SortDescriptor Member="Name"/> </telerik:RadGridView.SortDescriptors>
public class ActivityToAppointmentConverter:IValueConverter{ public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null || !(value is Activity)) return value; Activity activity = (Activity) value; List<Appointment> appointments = new List<Appointment>(); foreach (Schedule schedule in activity.Schedules) { appointments.Add(new Appointment() { Subject = schedule.Activity.Name, Body = schedule.Activity.Informations, Start = schedule.StartDate, End = schedule.EndDate, }); } return appointments; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); }}