protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e) { // load grid data if (pat == null) { RadGrid1.DataSource = CntAriCli.GetAppointments(ctx); } else { RadGrid1.DataSource = CntAriCli.GetPatientAppointments(patientId, ctx); } }
protected void RefreshGrid() { if (pat == null) { RadGrid1.DataSource = CntAriCli.GetAppointments(ctx).OrderByDescending(x => x.BeginDateTime); } else { RadGrid1.DataSource = CntAriCli.GetPatientAppointments(patientId, ctx).OrderByDescending(x => x.BeginDateTime); } RadGrid1.Rebind(); }
protected void SchedulerLoad() { DateTime a1 = RadScheduler1.VisibleRangeStart; DateTime a2 = RadScheduler1.VisibleRangeEnd; if (professional != null) { RadScheduler1.DataSource = CntAriCli.GetAppointments(professional, a1, a2, ctx); } if (diary != null) { RadScheduler1.DataSource = CntAriCli.GetAppointments(diary, a1, a2, ctx); } if (professional == null && diary == null) { RadScheduler1.DataSource = CntAriCli.GetAppointments(a1, a2, ctx); } RadScheduler1.Rebind(); }